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

查看:28
本文介绍了在 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 ?

谢谢

推荐答案

使用 selenium 可以抓取基于 javascript 的网页.特别是,请尝试 Selenium WebDriver.

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

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

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