屏幕抓取在Python是一种基于JavaScript的网页 [英] Screen Scraping a Javascript based webpage in Python

查看:216
本文介绍了屏幕抓取在Python是一种基于JavaScript的网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作Python中的屏幕抓取工具。但是,正如我期待通过网页的源代码,我注意到,大部分数据是通过JavaScript来了。

I am working on a screen scraping tool in Python. But, as I look through the source of the webpage, I noticed that most of the data is coming through Javascript.

任何想法,如何刮基于JavaScript的网页?在Python中的任何工具?

Any idea, how to scrape javascript based webpage ? Any tool in Python ?

感谢

推荐答案

刮基于JavaScript的网页可能与。特别是,尝试硒的webdriver

Scraping javascript-based webpages is possible with selenium. In particular, try the Selenium WebDriver.

这篇关于屏幕抓取在Python是一种基于JavaScript的网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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