http://www.perlmonks.org?node_id=946625


in reply to Re^5: Scrappy user_agent error
in thread Scrappy user_agent error

Tested this but it still gives an error. Maybe Scrappy is just not the right tool for this job..
Can't locate object method "user_agent" via package "scraper" (perhaps + you forgot to load "scraper"?) at ./scrappy.pl line 8. #!/opt/local/bin/perl use strict; use warnings; use Scrappy; my $url = 'http://google.com'; my $scraper = Scrappy->new; scraper->user_agent("opera","Macintosh"); $scraper->get("$url"); print $scraper->domain, "\n"; # print www.google.com __END__