Scikit Learn Machine Learning Tutorial For Investing - Pt. 22 - Workaround

by: t0mgs, 7 years ago

Last edited: 7 years ago

The Video - https://www.youtube.com/watch?v=5igqQ5V--tE&index=22&list=PLQVvvaa0QuDd0flgGphKCej-9jp-QdzZ3

Hi Harrison,

In the aforementioned tutorial, your parsing doesn't work anymore (due change in the "Key Statistics" page).

Any parsing won't work actually (I think), because they're doing something with the source code to camouflage the values.

So fetching the HTML pages is of no use, and we need another source for the data.

I've written a workaround for that using Yahoo!'s JSON API, uploaded it to my github & posted a link in the comments for the video.

This is of course your code with a few of my hacks - as mentioned in the solution itself. If this offends you please let me know.

The Workaround Repo - https://github.com/tomgs/sentdexworkarounds

Cheers,

-T




You must be logged in to post. Please login or register an account.



This is great, thanks for sharing! I wasn't aware that you could even get these key stats via yahoo finance API.

-Harrison 7 years ago

You must be logged in to post. Please login or register an account.


I wasn't either.

That's what they created StackOverflow for:)

-t0mgs 7 years ago

You must be logged in to post. Please login or register an account.


I've added a link both on part 21's video and the text-based version of the tutorial to your github example.

-Harrison 7 years ago

You must be logged in to post. Please login or register an account.


Awesome! Happy that I could help.

-t0mgs 7 years ago

You must be logged in to post. Please login or register an account.


Another user tried to fix the values I was getting, and I'm not sure we got the second metric in the list correct. Thoughts, Harrison?

https://github.com/tomgs/sentdexworkarounds/issues/1

-t0mgs 7 years ago

You must be logged in to post. Please login or register an account.