You're getting all kinds of things wrong here.
- ISBNs are not sequential. The last digit is a crude checksum. So if 0901690548 if valid, 0901690549 is guaranteed to *not* be valid;
- The last character can be an X or a digit;
- ISBNs beginning 0 or 1 are not US books
I suggest you fire up your trusty google and learn some more about the structure of an ISBN before you go any further. | [reply] |
Welcome to Perl Monks osmaster;
I'm glad you've joined us but feel you've missed the purpose of this site. We're very interested in helping you to learn perl but, as most of us have very little interest in your application and even less interest in doing the work for you, you will receive a better response here if can write some of the code on your own and post the results here for comment. Then I'm sure someone here will be happy to assist you.
Just a little point worth mentioning. Have you considered the amount of time it will take to fetch 20 billion error pages from Amazon's web servers and that they might consider such action a violation of your user privileges?
s//----->\t/;$~="JAPH";s//\r<$~~/;{s|~$~-|-~$~|||s
|-$~~|$~~-|||s,<$~~,<~$~,,s,~$~>,$~~>,,
$|=1,select$,,$,,$,,1e-1;print;redo}
| [reply] |
| [reply] |
War-Dialers remembers me Wargames movie, and stuff like Captain Crunch BlueBox.
Is that a web spider what you want to write? If so, you can take a look at Spidering Hacks. Most examples are written in Perl. | [reply] |
I want to build a Amazon ASIN/ISBN War-Dialer script
What's stopping you? | [reply] |
Hi:
This was my first project that I had in mind after reading the Perl book Spidering Hacks. http://www.amazon.com/exec/obidos/tg/detail/-/0596005776/
I was able to create the small Perl program above that searches for ISBN #'s in sequential order. It then emails me the results to my blogger website.
The blogger website is automatically updated by the Perl script. The Perl program searches Amazon for valid ISBN numbers. It returns the results with my Amazon.com Associates ID embedded in the link. The list of ISBNs on my blog is in sequential order. The spider searches for pages that do not return 404 html errors .
For me, I like checking the blog site. It's interesting what publishing titles are grouped close together by ISBN. My next step is to add content to the links (author, description, customer reviews)
The output for the program can be seen at:
http://amazon-electonic-deals.blogspot.com/
| [reply] |