This script automatically rotates between unwatched LoL Esports games to help you finish your Esports missions.
- Python 3
- Selenium/urllib3 (
pip install -r requirements.txt
) - Google Chrome WebDriver
- Visit: https://sites.google.com/a/chromium.org/chromedriver/
- Download the ChromeDriver with the same version number as your installed Google Chrome browser (most likely the latest stable release)
- Unpack the driver and place it in the same folder as
lolesports-watcher.py
- This script uses Google Chrome by default. If you use another browser, get the appropriate WebDriver and change the following line in the code to reflect this:
driver = webdriver.Chrome()
- To change the number of games to watch, find the following line and change the value:
NUMBER_OF_GAMES = 15
- The script will wait 13 minuntes before rotating to the next game. This should be more than enough for the game to count towards your missions. To change this, edit the following line:
WATCH_TIME_IN_MINUTES = 13
- The script will wait for 20 seconds at the login page. If you need more time to fill in your login details, find the following line and change the value:
time.sleep(20)
- The script will watch games from the LEC region by default. If you want to watch a different league instead, replace
VOD_URL
with your region of choice.
- Run
python lolesports-watcher.py
. A new Chrome window be started and you will be redirected to the lolesports.com login page. - Fill in your username and password and wait. It is not necessary to click the login button, as the script will automatically do it for you after 30 seconds.
- Do whatever you want, the script will finish your missions for you (: