wget的的JavaScript +? [英] wget + JavaScript?

查看:144
本文介绍了wget的的JavaScript +?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个网页,使用客户端JavaScript到页面上的数据格式之前,它显示给用户。

I have this webpage that uses client-side JavaScript to format data on the page before it's displayed to the user.

是否有可能以某种方式使用的wget 下载网页,并使用某种形式的客户端的JavaScript引擎对数据进行格式化,因为它会在浏览器中显示?

Is it possible to somehow use wget to download the page and use some sort of client-side JavaScript engine to format the data as it would be displayed in a browser?

推荐答案

您也许可以做的东西像 PhantomJS

You could probably make that happen with something like PhantomJS

您可以编写一个脚本phantomjs将加载页面就像一个浏览器会,然后要么采取截图或使用JS检查页面,然后拉出数据。

You can write a phantomjs script that will load the page like a browser would, and then either take screenshots or use JS to inspect the page and pull out data.

这篇关于wget的的JavaScript +?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆