Perl WWW::Mechanize::Firefox--连接tme out
我在firefox版本18的Windows32机器上使用perl版本5.14.2(我认为是活动的) 我正在尝试运行以下代码:Perl WWW::Mechanize::Firefox--连接tme out,perl,firefox,web-scraping,Perl,Firefox,Web Scraping,我在firefox版本18的Windows32机器上使用perl版本5.14.2(我认为是活动的) 我正在尝试运行以下代码: #!/usr/bin/perl use strict; use warnings; use WWW::Mechanize::Firefox; my $mech = WWW::Mechanize::Firefox->new( activate => 1, # bring the tab to the foreground ); $me
#!/usr/bin/perl
use strict;
use warnings;
use WWW::Mechanize::Firefox;
my $mech = WWW::Mechanize::Firefox->new(
activate => 1, # bring the tab to the foreground
);
$mech->get('https://familysearch.org/search/collection/results#count=20&query=%2Bevent_place_level_1%3ACalifornia%20%2Bevent_place_level_2%3A%22San%20Diego%22%20%2Bbirth_year%3A1923-1923~%20%2Bgender%3AM%20%2Brace%3AWhite& collection_id=2000219',':content_file'
'main.html');
1;
我得到一个错误:
命令在C:/Perl/site/lib/MozRepl/Client.pm第186行超时
我将非常感谢任何帮助修复此错误
但是,如果我运行以下命令,它将正常工作:
#!/usr/bin/perl
use strict;
use warnings;
use WWW::Mechanize::Firefox;
在工具下,我看到了MozRepl。我点击了ActivateStart。@MooingDuck-我猜是他的GET电话超时了。这将使它过于本地化,因为代码本身没有任何问题。但如果这就是原因,那么真的应该有这样的评论。@mooingDuck错了,猜猜看。它是模块和应用程序之间的通信。此用户是垃圾邮件发送者。多年来,他们在OpenSuse和Perlmonks上时断时续地发布了这个问题