开发者

Command-line browser with support for javascript rendering which outputs only the rendered HTML

I want a fast way to retrieve a page given a URL, but not getting only the simple HTML, but the HTML after executing javascript.

I'm aware of CutyCapt, but for me it is slow, taking more than 10 seconds for some web pages. Also I'm not comfortable using the --min-wait option, as it can return empty/non-final HTMLs. Also it seems to give different HTMLs from time to time. Sometimes it renders a ele开发者_JAVA百科ment which is created by a javascript function, sometimes it does not.

Is there any alternatives? I want to give an URL and get the rendered html back.


You could take the current version of CutyCapt from the svn repository and compile it with Qt 4.7.1 (or the trunk version from the Qt git repository. The current Webkit implementation is faster than version 4.4.0 that is used in the compiled version of CutyCapt. If it still is not fast enoupgh you could profile the code and try to find out if it can be optimized.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜