Benny- / Yahoo-ticker-symbol-downloader

A web scraper for ticker symbols from yahoo finance
https://pypi.python.org/pypi/Yahoo-ticker-downloader/
Other
247 stars 87 forks source link

Program ends with exception #56

Open rwmasood opened 4 years ago

rwmasood commented 4 years ago

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)