简体   繁体   English

使用MozRepl和Mechanize :: Firefox呈现HTML

[英]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 (eg,: https://www.google.com/offers/home#!details/4bc7fd6bd3feb311/XYW81TXGLA88TR42 ) 我刚刚介绍了与Perl的WWW :: Mechanize :: Firefox一起使用的MozRepl的奇迹,并试图弄清楚如何使用它来抓取GWT页面(例如: https//www.google。 com / offers / home#!details / 4bc7fd6bd3feb311 / XYW81TXGLA88TR42

What I really want is the rendered html, not the actual html. 我真正想要的是渲染的html,而不是实际的html。 Would really appreciate an example of how I would get this. 真的很感激我会如何得到这个。

I decided to use the fantastic PhantomJS to get the job done. 我决定使用梦幻般的PhantomJS来完成工作。 It's incredibly easy to use Phantom as a server side tool to get the rendered HTML of a dynamic webpage. 使用Phantom作为服务器端工具来获取动态网页的呈现HTML非常容易。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM