Skip to content

TobiasPankner/Fast-Yahoo-Ticker-Symbol-Downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fast-Yahoo-Ticker-Symbol-Downloader

Downloads (almost) all the symbols from Yahoo Finance.
This project does pretty much the same thing as Yahoo-ticker-symbol-downloader by Benny-, but uses a different url and multiprocessing to retrieve the data.
Because of this, this program is a lot faster.

Speed Comparison

time symbols collected
Yahoo-ticker-symbol-downloader 1 min 5200
Fast-Yahoo-Ticker-Symbol-Downloader 1 min 325000

Both tested with the same Download speed on the same machine.

Usage

usage: symbol_downloader.py [-h] [-b BATCHSIZE] [-l CLENGTH] [-t TYPES] [-o OUTFILE]

Collects almost all symbols from Yahoo Finance.

optional arguments:
  -h, --help            show this help message and exit
  -b BATCHSIZE, --batchsize BATCHSIZE
                        Number of urls in one batch
  -l CLENGTH, --clength CLENGTH
                        The maximum length of combinations to search for
  -t TYPES, --types TYPES
                        The types of symbols to download (equity,mutualfund,etf,index,future,currency,cryptocurrency)
  -o OUTFILE, --outfile OUTFILE
                        The path of the output file

Notes:
batchsize should be reduced if you have a slow connection or a weak CPU
clenght has deminishing returns, meaning a clength of 5 takes much longer than a clength of 4 but will not get many more results.

Examples:
Default arguments, saves symbols in the same folder:
py symbol_downloader.py

Only download futures and etfs to a specific folder:
py symbol_downloader.py -t etf,future -o E:/Desktop/symbols.csv

About

Downloads (almost) all the symbols from Yahoo Finance

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages