http://qs321.pair.com?node_id=741653


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

You might experiment with different user agent settings; and/or view Wikipedia's robots.txt for clues.

HTH,

planetscape
  • Comment on Re: Test::WWW::Mechanize page_links_ok fails on wikipedia entry external links

Replies are listed 'Best First'.
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

    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,