robertmartin8 / MachineLearningStocks

Using python and scikit-learn to make stock predictions
MIT License
1.74k stars 506 forks source link

Refactor current_data.py #3

Closed robertmartin8 closed 6 years ago

robertmartin8 commented 6 years ago

current_data.py extracts the current financials of a company by scraping yahoo finance.

However, if you look at the file you will see that it is a hard-coded mess, filled with code smell and repetition. In the spirit of python, this can and should be fixed. I do have a fix ready on one of my recent versions of this project, but I will have to backwards-integrate it.