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
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