Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 327
Vijay Boyapati Avatar asked Oct 23 '11 18:10

Vijay Boyapati


1 Answers

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.

like image 170
Vijay Boyapati Avatar answered Oct 26 '22 06:10

Vijay Boyapati