This script is a refactor of another developer's work. Credit will be updated when available.
- Open Start and search for "Environment Variables".
- Click "Edit the System Environment Variables".
- Click "Environment Variables" at the bottom right corner https://github.com/user-attachments/assets/2e723aa7-2d6e-4b17-a4a0-ffd27b61b4a1
- Under the Users section, click "New" https://github.com/user-attachments/assets/a59d43ea-9aa3-440c-9369-55e3a98b9712
- Set Variable Name to
BALLCHASING_API_KEY. - Set Variable Value to your unique API key.
- Restart your PC for changes to take effect.
- Clone the repository.
- Run
pip install argparse json pandas requests.
Create a urls.json file in the script directory with your group URLs:
[
"https://ballchasing.com/group/rtku4-rl-wk9-griffins-vs-pegasus-jah697qbqy"
]Execute the script from the terminal:
python bc_scraper_refactor.py urls.json
An output directory will be created for the CSV files. Note: Existing CSVs with the same name will be overwritten.