1
在使用perl的JavaScript鏈接中獲取以下錯誤 - WWW::Mechanize。使用WWW訪問鏈接時出錯:機械化
錯誤歌廳的javascript:submt_os( '2', '接觸%20info', '接觸%20info'):協議方案 '的javascript' 不支持
這是我的代碼:
#!/usr/bin/perl
use WWW::Mechanize;
my $mech = WWW::Mechanize->new();
$uri="http://tinyurl.com/76xv4ld";
$mech->get($uri);
# error on this link
$mech->follow_link(text => 'Contact Information');
print $mech->content();
一旦我找到頁面,我想點擊聯繫信息。
還有其他方法可以點擊聯繫信息?
相關:http://stackoverflow.com/questions/3769015/how-can-i-handle-javascript-in-a-perl-web-crawler http://stackoverflow.com/questions/9559927/web- crawler-with-javascript-support-in-perl - 在提出問題之前,使用相關的關鍵字搜索堆棧溢出和Web有幫助。 – daxim 2012-03-09 10:41:37