Skip to main content

China stock market everyday history data downloader

Project description

股票信息爬虫

股票数据下载应用应用。个股K线历史每天(自从开盘日起),高开低收,成交量等各种数据

命令行pip install tuStockSpider 下载项目到

之后在tuStockSpidert的路径下,如下

/lib/python3/site-packages/tuStockSpider

使用

在编辑器中

import tuStockSpider as tss

tss.download_history_data(‘000002’,’D:/temp/data/’) #下载000002数据到D:/temp/data/文件夹

tss.download_history_data(‘000002’) #下载000002数据到默认的/lib/python3/site-packages/tuStockSpider/data文件夹

#慎用download_all_hitory(),速度慢而且多次请求

tss.download_all_hitory(‘’) #下载全部股票数据

tss.download_all_hitory(‘sz’) #下载全部深圳证券交易所股票数据

tss.download_all_hitory(‘sh’,’shdata/’) #下载全部上海证券交易所股票数据到shdata文件夹

版本更新 pip install –upgrade tuStockSpider

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tuStockSpider-0.15.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

tuStockSpider-0.15-py3-none-any.whl (5.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page