Skip to content

A python based data scraper for the popular fitness app Strava!

Notifications You must be signed in to change notification settings

Abhiram98/strava-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

strava-scraper

Dependencies

A Firefox browser and geckodriver installed

Python dependencies

pip install -r requirements.txt

To scrape data from strava

Step 1. Login to strava to set login cookies

python <path-to-repo>/scraper login

ℹ️ be sure to check the 'remember me' box before logging in.

Step 2.

Load all activity ids of a strava athlete, with the athlete's name and strava athlete id(from the url after "https://strava.com/")

Example:

python <path-to-repo>/scraper collect -n "Alex Dowsett" -i /pros/505408

ℹ️ This step may take a while

Step 3. Scrape data with the athlete's name and athlete id.

Example:

python <path-to-repo>/scraper download "Alex Dowsett" /pros/505408

The data is saves in the "data" folder, under the athlete's name.

Tip - Strava implements rate limiting. As a result, all the data may not be fetched, by using the above command. Set the above command as a cron job every few hours to fetch all of the data.

About

A python based data scraper for the popular fitness app Strava!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages