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

从新浪财经、每经网、金融界、中国证券网、证券时报网上,爬取上市公司(个股)的历史新闻文本数据进行文本分析、提取特征集,然后利用SVM、随机森林等分类器进行训练,最后对实施抓取的新闻数据进行分类预测
MIT License
932 stars 256 forks source link

FileNotFoundError: [Errno 2] No such file or directory: 'stock_daliy/000416.txt' #1

Open SeekPoint opened 5 years ago

SeekPoint commented 5 years ago

(.venv) ub16hp@UB16HP:~/ub16_prj/Listed-company-news-crawl-and-text-analysis$ python3 run_crawler_tushare.py Traceback (most recent call last): File "run_crawler_tushare.py", line 13, in Obj.getStockDayHistory('Stock',stockcode) File "/home/ub16hp/ub16_prj/Listed-company-news-crawl-and-text-analysis/Crawler/crawler_tushare.py", line 90, in getStockDayHistory for row in open(Path,'r'): FileNotFoundError: [Errno 2] No such file or directory: 'stock_daliy/000416.txt' (.venv) ub16hp@UB16HP:~/ub16_prj/Listed-company-news-crawl-and-text-analysis$

panwenlei commented 5 years ago

I encountered the same problem...how to handle it ?

DemonDamon commented 5 years ago

I encountered the same problem...how to handle it ?

i think is the crawling issues. is the .txt file of that stock daily price in stock_daily file?

MoonMoon-He commented 5 years ago

where is stock_daily file? I can't find it. hope u response asap thanks