/strava-club-leaderboard

Scraper for club member leaderboard

Primary LanguagePython

Scrape Strava club leaderboard

Its helps one to get the most active (time), cyclist (km), runner (km) and swimmer (m) from a passed club_id. Unfortunately Strava does not expose a proper API that give one the necessary information easily. Therefore this repo has been created to login into Strava via email and password, scrape all member data of the club.

Usage

scrapy crawl strava -a club_id=2282432
python post_processing.py

Output

❯ python post_processing.py
parsed xxx members
🕓 Most active member:
1. Qwe rty - 123 hours 12 minutes

🚴 Most active cyclists
1. Qwe rty - 1234.1 Km

🏃 Most active runner
1. Qwe rty - 123.1 Km

🏊‍ Most active swimmer
2. Qwe rty - 123 meter

Install

# if you're using virtualenv
virtualenv -p python3.8 venv
source ./venv/bin/activate

pip install -r requirements.txt

Todo/Issues

  • duplicate/cleanup code
  • cleanup hacked post_processing.py file
  • swimming max 999.999 representation bcz regex