1 Star 0 Fork 14

longxian435/Listed-company-news-crawl-and-text-analysis

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
run_crawler_tushare.py 686 Bytes
Copy Edit Raw Blame History
燕洼仙草 authored 2018-07-14 02:06 +08:00 . 修改
# from gevent import time
import time
from Crawler import crawler_tushare_new as ctn
if __name__ == '__main__':
time.sleep(5)
ctn.saveTodayAllStock()
time.sleep(10)
ctn.saveHistScodes()
'''
t1 = time.time()
# Initiate
Obj = CrawlStockData(IP="localhost",PORT=27017)
# Get basic infos of stocks
Obj.getStockBasicFromTushare("Stock","Basic_Info")
# Extract stocks' code
Code = Obj.extractData('Stock','Basic_Info',['code'])[0]
# Get stock price from Tushare
for stockcode in Code:
Obj.getStockDayHistory('Stock',stockcode)
print(' [*] ' + stockcode + ' has finished storing ... ')
t2 = time.time()
print(' running time:', t2 - t1)
'''
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/longxian435/Listed-company-news-crawl-and-text-analysis.git
git@gitee.com:longxian435/Listed-company-news-crawl-and-text-analysis.git
longxian435
Listed-company-news-crawl-and-text-analysis
Listed-company-news-crawl-and-text-analysis
master

Search