Benny-/Yahoo-ticker-symbol-downloader

Program ends with exception

rwmasood opened this issue · 0 comments

Hi,

I typed YahooTickerDownloader.py without any options, it ran for some time and then logged with the following exception:

Got 0 downloaded generic symbols:
Progress: Query 2719/41750.
16124 unique generic entries collected so far.

req https://finance.yahoo.com/_finance_doubledown/api/resource/searchassist;searchTerm=ek7?device=console&returnMeta=true
Got 8 downloaded generic symbols:
Got 8 downloaded generic symbols:
A exception occurred while downloading. Suspending downloader to disk
Successfully saved download state
Try removing {type}.pickle file if this error persists
Issues can be reported on https://github.com/Benny-/Yahoo-ticker-symbol-downloader/issues

Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\envs\ml_finance\Scripts\YahooTickerDownloader.py", line 170, in
main()
File "C:\ProgramData\Anaconda3\envs\ml_finance\Scripts\YahooTickerDownloader.py", line 111, in main
downloadEverything(downloader, tickerType, args.insecure, args.sleep, args.pandantic)
File "C:\ProgramData\Anaconda3\envs\ml_finance\Scripts\YahooTickerDownloader.py", line 41, in downloadEverything
print("Got " + str(len(symbols)) + " downloaded " + downloader.type + " symbols:")
OSError: raw write() returned invalid length 70 (should have been between 0 and 35)