A Python project for scraping data from Strava club leaderboards using Selenium.
-
This Python code allows you to scrape data from Strava club leaderboards, providing information about club members, such as rank, distance. It uses Selenium to automate interactions with the Strava website.
-
Creates posters (images) from the received information using Pillow.
-
The created posters are sent to the Telegram
chat_id
specified by you (channel/chat/private message). Aiogram is used.
-
Clone this repository:
git clone https://github.com/sergbondckua/strava_club_last_week_leaderboard.git
-
Copy .env.template to .env and fill in the necessary data:
cp .env_dist .env
-
Without Docker:
- Create a venv
cd strava_club_last_week_leaderboard/
python3 -m venv venv
source venv/bin/activate
- Upgrade
pip
:pip install --upgrade pip
- Install dependencies from
requirements.txt
:pip install -r requirements.txt
- Run the project:
OR
python aps_run.py
python main.py
- Create a venv
-
Docker:
- You can directly run the project with Docker. If you don't have Docker installed, you can download and install it.
- Run the project with the command:
docker-compose up
ordocker-compose up -d