You are not logged in Log in Join
You are here: Home » Members » stevea » barcode_to_amazon

Log in
Name

Password

 

Scan in a book's barcode using your cuecat barcode reader. You will be redirected to the appropriate page at amazon.com

 

The code to decode the output of the cuecat reader, and turn it into an ISBN, is written entirely in DTML.

Read the source:

  • This page: basically just a form
  • redir: calls the two methods that do the real work, and redirects to amazon.com
  • get_isbn: converts a barcode into an isbn
  • decode_cat: decodes cuecat output into a list of [reader_id, barcode_type, barcode]

These four DTML methods are in the public domain. Use them as you please.

This code is based on code placed in the public domain from http://www.eblong.com/zarf/bookscan/ and http://www.plover.net/~skip/cc/.

Don't try this at home, kids! Do not abuse DTML like this in any code you hope to use later. Write your complex code in Python.

Here is a much simpler external method that does exactly the same job.

If you find a book that doesn't work, or you want to contact me about this software, mail me <[email protected]> or ask on one of the zope mailing lists.