Tuesday, August 14, 2012
WWW-Mechanize
If you have to work with page that you need to save your session cookies to scrape a web page and/or work with lots of forms WWW-Mechanize works really well. One thing that I have found that I really like about it is that I can use it from a shell like like this "perl -MWWW::Mechanize::Shell -eshell". You can then work with the site that you are needing to do your task on and just export every thing that you have done and "script myscriptname.pl" and then you have a Perl script "myscripname.pl" that you can call to do the same steps over and over again. Most of the time I just use that script file as a sub for my main code in the end. This has become a tool that is all ways on my belt of really nice Perl modules.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment