Skip to content

基于Scrapy+Selenium 的宽基指数基金爬虫可行性测试

Notifications You must be signed in to change notification settings

gladioli/IndexFund

Repository files navigation

IndexFund

使用 Scrapy+Selenium 在天天基金网爬去指定指数类型的宽基基金,并做定投初步筛选导出xlsx
本脚本仅供学习使用,如有其他用途,后果自负

环境依赖

Python3.6.2

openpyxl==2.4.8
Scrapy==1.3.3
selenium==3.141.0
lxml==4.4.2

部署步骤

  1. clone
git clone https://github.com/gladioli/IndexFund.git
  1. 安装依赖
cd IndexFund
pip install -r requriements.txt
  1. 修改指数类型
    打开spiders/csi_500.py,
    search_key的值修改成想要查询的指数类型,如:上证50、中证500、沪深300
    search_key = '中证500'

About

基于Scrapy+Selenium 的宽基指数基金爬虫可行性测试

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages