perlfirefoxgwtmechanizemozrepl

Getting rendered HTML with MozRepl and Mechanize::Firefox


I've just been introduced to the wonders of MozRepl used in conjunction with Perl's WWW::Mechanize::Firefox, and was trying to figure out how to use it to crawl GWT pages (e.g.,: https://www.google.com/offers/home#!details/4bc7fd6bd3feb311/XYW81TXGLA88TR42)

What I really want is the rendered html, not the actual html. Would really appreciate an example of how I would get this.


Solution

  • I decided to use the fantastic PhantomJS to get the job done. It's incredibly easy to use Phantom as a server side tool to get the rendered HTML of a dynamic webpage.