【发布时间】:2016-07-09 00:21:02
【问题描述】:
我试图做一个自动脚本来下载一些外汇价格历史数据。这些数据可在
https://www.dukascopy.com/swiss/english/marketwatch/historical/
但是,如果我只是使用 Selenium 来检索网站的一部分,无论我等待多长时间,我都无法在网站中找到这个元素:
<iframe src="https://freeserv.dukascopy.com/2.0/?path=historical_data_feed/index&header=false&availableInstruments=l%3A&width=100%25&height=600&adv=popup" border="0" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" width="100%" height="600"></iframe>
显然,selenium 唯一能读取的是 : 前面的两个元素
<script type="text/javascript">DukascopyApplet = {"type":"historical_data_feed","params":{"header":false,"availableInstruments":"l:","width":"100%","height":"600","adv":"popup"}};</script>
<script type="text/javascript" src="https://freeserv.dukascopy.com/2.0/core.js"></script>
有人知道如何解决这个问题吗?非常感谢。
【问题讨论】:
标签: python selenium web-crawler