Skip to content

A crawler which fetch the stock history data from yahoo finance

Notifications You must be signed in to change notification settings

maobubu/yahoo-finance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yahoo-finance

A crawler that fetches the stock history data from yahoo finance.

Run the code with

python3 main.py 

Don't forget to create a folder to store the data and change the path in main.py

If a stock failed , the Index will be saved in fail.txt, change line 8 in main.py from

firstcolumn = [line.rstrip() for line in f]  # line.split(',')[0]

to

firstcolumn = [line.split(',')[0] for line in f]

and re-run the test with the input file changed to fail.txt, this helps avoid dupicate download which is time consumming.

About

A crawler which fetch the stock history data from yahoo finance

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages