如何使用cURL从其他网站获取javascript生成的内容? [英] How to get javascript-generated content from another website using cURL?

查看:501
本文介绍了如何使用cURL从其他网站获取javascript生成的内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

基本上,页面生成一些动态内容,我想获得动态内容,而不只是静态html。我不能用cURL这样做。

Basically, a page generates some dynamic content, and I want to get that dynamic content, and not just the static html. I am not being able to do this with cURL. Help please.

推荐答案

您可以尝试使用 http://seleniumhq.org ,它支持js。

you could try selenium at http://seleniumhq.org, which supports js.

这篇关于如何使用cURL从其他网站获取javascript生成的内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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