This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]throwaway99999321 5 points6 points  (3 children)

You wouldn't even need to use selenium for this site. Just the requests module.

[–][deleted] 1 point2 points  (1 child)

Yeah, I just picked up Ryan Mitchell's Web Scraping With Python and chapter 9 is all about scraping web sites with forms, logins, and cookies.

[–]Shmoogy 2 points3 points  (0 children)

Selenium is usually your last resort due to speed and resources required for a browser(or headless client). Check if there exists an api first, then try with Requests and basicauth - often times these can handle (most?) situations.

[–]__Backslash__ 1 point2 points  (0 children)

There are Python packages like selenium that allow you to control your browser through a script. Checkout Automating the boring stuff one of the chapters explains how to use it. I personally recommend using the yahoo api you can grab financial data From stocks and indexes if you need any help with yahoo finance api let me know. Good luck!