Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: Test::WWW::Mechanize page_links_ok fails on wikipedia entry external links

by mandog (Curate)
on Feb 05, 2009 at 21:38 UTC ( #741704=note: print w/replies, xml ) Need Help??


in reply to Re: Test::WWW::Mechanize page_links_ok fails on wikipedia entry external links
in thread Test::WWW::Mechanize page_links_ok fails on wikipedia entry external links

Yep, robots.txt / user-agent exclusion is the problem

$mech->agent_alias( 'Windows IE 6' ); works with wikipedia but for some reason not gnu.org  $mech->agent_alias('Linux Mozilla'); works for both.

I guess if wikipedia doesn't want mech scraping, I won't do it.

Thanks for your help planetscape,

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://741704]
help
Chatterbox?
[ambrus]: Corion: I didn't want to start this particular computer up, I took this one away so that I can put the other computer I want to start up in its place, but that probably doesn't make much of a difference.
[Corion]: ambrus: A sacrifice is a sacrifice ;)

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2017-01-16 19:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (151 votes). Check out past polls.