On Sat, Sep 22, 2012 at 10:01:51AM -0500, cr...@gtek.biz wrote: > Greetings, > > I have a small book collection (~150) that I thought would be neat to catalog > by the Library of Congress catalog numbers. I have found a LOC search form > that will allow me to input the ISBN, and it will return the information I > want: > > [code]http://www.loc.gov/cgi-bin/zgate?ACTION=INIT&FORM_HOST_PORT=/prod/www/data/z3950/locils2.html,z3950.loc.gov,7090[/code] > > I have the list of book ISBNs in a text file, so scripting this should be > quite easy. The problem is I can't figure out how to submit the form from the > command line. I figured wget would be the best way, but everything I try > results in downloading a single line that reads "Your form didn't include an > ACTION!" So I thought I would turn to here for help. The test ISBN I am using > is for The Linux Cookbook: 1886411484, QA76.76.O63S788 2001.
Have a look at: http://search.cpan.org/dist/WWW-Mechanize/ Have a read of: http://www.perl.com/pub/2003/01/22/mechanize.html Do a google search on "perl www::mechanize" Apologies for the 'z' in "mechanize" -- "If you're not careful, the newspapers will have you hating the people who are being oppressed, and loving the people who are doing the oppressing." --- Malcolm X -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20120925140529.GU8247@tal