如何用scrapy抓取交互式图表? [英] How to scrap an interactive charts with scrapy?

查看:106
本文介绍了如何用scrapy抓取交互式图表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 scrapy 抓取和抓取网页。
我有兴趣取消此页面。如您所见,有几个图表。但是,当我查看源代码时,即使在< script> 标记中搜索,也找不到这些点的值。

I use scrapy to scrap and crawl webpages. I am interested about to scrap this page. As you can see there are several charts. But when I look at the source code, I do not find the values of the points, even when I search in the <script> tags.

我该如何删除每个图表,以x为小时,以y为奇数值?

How can I do to scrap each chart, with x as hour, and y as value of the odd?

Scrapy版本:1.5 .2

Scrapy version: 1.5.2

推荐答案

数据在您的网页上。签入脚本标记变量 var cote_data_1 var cote_data_2 ,等等。它们应该可以在没有JS的情况下使用。

Data is on your webpage. Check in script tag variables var cote_data_1, var cote_data_2, etc. They should be available without JS.

这篇关于如何用scrapy抓取交互式图表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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