hexun部分汇率数据爬虫
爬取hexun部分汇率数据,因为爬取的数据是通过js渲染,因此采用了scrapy-splash。在crawl前需要docker pull scrapinghub/splash
下载镜像,然后执行docker run -it -p 8050:8050 scrapinghub/splash
。
id | from_currency | to_currency | rate | created_time | updated_time |
---|---|---|---|---|---|
1 | 美元 | 人民币 | 638 | 1559611469 | 1559611469 |