Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Extracting content from html

by Withigo (Friar)
on Jun 15, 2006 at 00:28 UTC ( #555385=note: print w/replies, xml ) Need Help??


in reply to Extracting content from html

Another option is a kind of Kobayashi Maru scenario, where you can change the contraints of the underlying problem in order to derive a simpler solution.

Instead of messing with LWP, HTTP, and parsing HTML to get at the data, just get the data itself. I know you said you want to do it that way however, as an exercise; which is cool, so feel free to ignore the rest of what I'm about to say.

IMDb.com provides all of their data as well as alternative interfaces to their data. One of the interfaces is a suite of unix command line utilities useful for querying the data, which sounds exactly like you need. IMDb probably also appreciates the alternatives being used instead of screen scrapers.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://555385]
help
Chatterbox?
[Corion]: ambrus++ # more bugs than lines
[Corion]: That's like "works on my machine" ;-)
[choroba]: I mean, I'd like to say "this path should run this sub, but first it should check the user is authenticated, has the following permissions, and the contents is valid against a given schema
[ambrus]: no, that means I haven't even tried to run it, might not even parse
[ambrus]: so it doesn't work on my machine
[choroba]: i.e. I know JSON::Schema, I'm just curious whether there's a ready solution to plug it into a web service

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2016-12-08 12:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (141 votes). Check out past polls.