Skip to content

Scraping data from Strava club week's leaderboards. Generation of posters (images) with a list of athletes' rating. Sending posters to Telegram chat/channel.

Notifications You must be signed in to change notification settings

sergbondckua/strava_club_last_week_leaderboard

Repository files navigation

Strava club - Week's Leaderboard

Python 3.11 Selenium 4.14.0 Pillow Aiogram

A Python project for scraping data from Strava club leaderboards using Selenium.

Table of Contents

Introduction

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

  • https://imgur.com/vK7rIuQ.png

Installation

  1. Clone this repository:

    git clone https://github.com/sergbondckua/strava_club_last_week_leaderboard.git
  2. Copy .env.template to .env and fill in the necessary data:

    cp .env_dist .env
  3. Without Docker:

    1. Create a venv
      cd strava_club_last_week_leaderboard/
      python3 -m venv venv
      source venv/bin/activate
    2. Upgrade pip:
       pip install --upgrade pip
    3. Install dependencies from requirements.txt:
      pip install -r requirements.txt
    4. Run the project:
      python aps_run.py
      OR
      python main.py
  4. Docker:

    1. You can directly run the project with Docker. If you don't have Docker installed, you can download and install it.
    2. Run the project with the command: docker-compose up or docker-compose up -d

Usage

About

Scraping data from Strava club week's leaderboards. Generation of posters (images) with a list of athletes' rating. Sending posters to Telegram chat/channel.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published