Some websites require you to login to the site using your credential, to view the content. It's easily scriptable with WWW::Mechanize, but if you visit the site frequently with your browser, why not reusing the browser's cookies, so as you don't need to script the login process?
Web::Scraper allows you to call methods, or entirely swap its UserAgent object when it scrapes the website. Here's how to do so:
use Web::Scraper; use HTTP::Cookies::Guess;
my $cookie_jar = HTTP::Cookies::Guess->create(file => "/home/miyagawa/.mozilla/cookies.txt"); my $s = scraper { }; $s->user_agent->cookie_jar($cookie_jar); $s->scrape($uri);
$Web::Scraper::UserAgent->cookie_jar($cookie_jar);