BruceJohnJennerLawso / scrap

Hockey stats analysis done by scraping the data to a csv file, then processing/analyzing them with more python.
3 stars 0 forks source link

Functionalize the IML login process #134

Open BruceJohnJennerLawso opened 7 years ago

BruceJohnJennerLawso commented 7 years ago

Currently the scrap and stew are a mess, mostly because of the rapid pace they were written at. A good start to centralizing and cleaning this mess would be to make the login process for IMLeagues a simple function that takes user credentials as arguments, and returns a selenium browser object to do whatever the script needs to do. My only concern is that there might be issues with passing the browser object out of scope, but I'll just have to see what happens