Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Accessing isbnsearch dot org via perl

by davido (Cardinal)
on Dec 30, 2013 at 02:28 UTC ( [id://1068711]=note: print w/replies, xml ) Need Help??


in reply to Accessing isbnsearch dot org via perl

The site accepts queries in the URLs in a fairly straightforward format: "http://www.isbnsearch.org/isbn/9780596000271" really requires no explanation.

If you "view source" on the results page, you can easily see <div class= tags for merchant, price, shipping, and notes. Notes is the field that seems to be used to describe the book's condition, but it's probably the least reliable (or hardest to make assumptions about) field. The rest are also relatively straightforward. All of the fields would be easy to parse using one of the many HTML parsers on CPAN.

Obtaining the result page could be as simple as hitting it with LWP::Simple. So here is the strategy: Construct a legitimate query URL, request it with something like LWP::Simple, and parse the results using your favorite HTML parser. The rest is just programming. ;) If you get hung up implementing this strategy, let us know where you're stuck.


Dave

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1068711]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2024-04-26 04:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found