Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^4: Web Scraping on CGI Scripts?

by fraizerangus (Sexton)
on Oct 10, 2011 at 09:30 UTC ( #930566=note: print w/replies, xml ) Need Help??


in reply to Re^3: Web Scraping on CGI Scripts?
in thread Web Scraping on CGI Scripts?

Web::Scraper does'nt seem to recgnise the <> tagging in the CGI scripts in the same way as the HTML, if you run the same code on HTML it works but on CGI it can't recognize and process it?

Replies are listed 'Best First'.
Re^5: Web Scraping on CGI Scripts?
by Corion (Pope) on Oct 10, 2011 at 09:34 UTC

    Most likely whatever browser you use to "save the HTML" reformats the data it receives. Go look at what data exactly Web::Scraper sees, maybe using curl or wget or LWP::Simple::get, and work from that instead of data that was changed by the browser.

    Also learn the difference between "HTML" and "CGI", and learn why it does not apply. It seems to me that by "HTML" you mean "data retrieved from locally saved files", and by "CGI" you mean "data retrieved online over HTTP". You should change the terms you use appropriately.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://930566]
help
Chatterbox?
[Corion]: There is a weirdo shim because there is a POE integration for Prima, and if you use that, you can use the POE adapter of AnyEvent. What I'd want is something transport agnostic that parses HTTP or produces HTTP output, so that the communication with ...
[Corion]: ... the socket is done by my code. Ideally that module would not be based on callbacks ;)
[Corion]: Basically, something that decouples the HTTP parsing (+ determining whether to redirect, etc) from the IO
[Corion]: All clients I'm aware of don't do that but issue all IO themselves

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













    Results (130 votes). Check out past polls.