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.

Files for tuStockSpider, version 0.15
Filename, size File type Python version Upload date Hashes
Filename, size tuStockSpider-0.15-py3-none-any.whl (5.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size tuStockSpider-0.15.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page