A quick and dirty python script to run periodically to scrape the hiscores and keep the top players updated on WOM Trailblazer Reloaded.
Python 3.8 or higher is required to use the wom.py
dependency. This shouldn't be
an issue as I think ubuntu ships with 3.8 by default.
- Clone the repo if you plan to only run the script
- Fork the repo if you plan to contribute to it
Create a virtual environment and activate it
$ python3 -m venv .venv
$ source .venv/bin/activate
Install dependencies
$ pip3 install -r requirements.txt
Read through the constants declared in main.py
in the Configuration
section.
Change any values as you see fit for development.
Recommended values for production:
- LOG_LEVEL: DEBUG
- METRIC_LIMIT: None
- ENABLE_SEASONAL: True
- BASE_URL: Leave this untouched
- DELAY: 60
- BROWSER_USER_AGENT: Leave this untouched
- WOM_API_KEY: Update if you have a key
- LEADER_GROUP_NAME: Leave this untouched
- WOM_USER_AGENT: Update if you want
Run the script
$ python3 main.py
WOM Leagues Scraper is licensed under the MIT License.