Skip to content

semio/cnstockdata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

中国股票数据下载器,使用网上免费的数据源如东方财富网,新浪财经等。tushare 是更好的选择。

Depandencies

  • scrapy
  • pandas
  • pynt (optional)

目前已经实现的功能

下载所有股票列表(含已退市股票):

scrapy crawl stocklist -o ./data/stocklist.csv

下载某个股票的最近几次季报的财务数据摘要:

scrapy crawl financialdata -a stock=000001 -o ./data/000001.csv

所有股票的财务数据摘要(将从data/stocklist.csv读取股票列表):

scrapy crawl financialdata -o ./data/financial.csv

下载某个股票的所属行业和概念:

scrapy crawl stocksectors -a stock=000001 -o ./data/sec000001.csv

所有股票的所属行业和概念:

scrapy crawl stocksectors -o ./data/secetors.csv

下载股票日线数据

scrapy crawl hisrotyprice -a stock=000001 -o ./data/prices/000001.csv

只下载最近几个季度的日线数据

scrapy crawl hisrotyprice -a stock=000001 -a pages=2 -o ./data/prices/000001.csv

pynt

build.py里面是一些pynt task。

About

utilities for downloading stock data of Chinese market

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages