Coder Social home page Coder Social logo

cnstockdata's Introduction

**股票数据下载器,使用网上免费的数据源如东方财富网,新浪财经等。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。

cnstockdata's People

Contributors

semio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.