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

Re: On being a browser

by Corion (Pope)
on Sep 29, 2003 at 11:53 UTC ( #294933=note: print w/ replies, xml ) Need Help??


in reply to On being a browser

I had the same idea, and my approach let me to create WWW::Mechanize::Shell, together with HTML::Display, which allow semi-natural browsing via the command line and still have a browser available to render the resulting pages. It's not perfect and suffers from the same JavaScript pitfalls as the IE solution does, but it works nicely enough to easily get a skeleton script for automating http/web tasks.

perl -MHTTP::Daemon -MHTTP::Response -MLWP::Simple -e ' ; # The $d = new HTTP::Daemon and fork and getprint $d->url and exit;#spider ($c = $d->accept())->get_request(); $c->send_response( new #in the HTTP::Response(200,$_,$_,qq(Just another Perl hacker\n))); ' # web


Comment on Re: On being a browser
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2014-09-18 00:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (101 votes), past polls