emperor: (Default)
posted by [personal profile] emperor at 10:44pm on 28/03/2008
Thanks to [livejournal.com profile] tamsinj, I have acquired a bar-code scanner. A Welch Allyn Scanteam 3400, to be precise. It's powered by a USB lead, and outputs down a serial line. I knocked up a short python script (214 lines, including UI, error checking de-duplication, etc.) to extract the ISBN from the barcode, then look that up on amazon (cribbing from [livejournal.com profile] toothycat's perl somewhat!) and hackily screen-scrape the answer, and store the result in a file (with the option for the user to override or correct entries).

It works quite nicely, and I can do about 3 books/minute (including dealing with those that have no bar-code, or whose ISBN amazon doesn't know about, or have no ISBN, and carrying them all up and down stairs). I spent a while doing a couple of shelves' worth (59 books) to iron out the bugs in the UI, and I'm quite pleased with the result.

ETA: I did another couple of shelves, and now have 116 catalogued

Reply

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

October

SunMonTueWedThuFriSat
      1
 
2
 
3
 
4
 
5
 
6
 
7
 
8
 
9
 
10
 
11
 
12
 
13
 
14
 
15
 
16
 
17
 
18
 
19
 
20
 
21
 
22
 
23
 
24
 
25
26
 
27
 
28
 
29
 
30
 
31