Giter Club home page Giter Club logo

stravalib-scraper's Introduction

stravalib-scraper

Library for web-scraping Strava data.

Note: Strava does have a developer portal complete with a proper API and examples. This web-scraping based library was initially written years ago, before that API officially came about.

In no way does the author of this library advocate using it, particularly in any way that is abusive or in conflict with Strava's terms or developer guidelines. Proceed at your own risk!

Installation:

$ pip install -r requirements.txt

Command line interface:

To simply login and get the HTML from the dashboard, use the scraper from the command line:

$ ./scraper.py "[email protected]" "your-password"

If there's a specific page you'd like to get info from, say the Rapha Rising challenge from 2012, pass that URL as the final argument:

$ ./scraper.py "[email protected]" "your-password" "https://www.strava.com/challenges/rapha-rising-circle-of-death"

Python interface:

To use the scraper from your own python code, you could do something like this:

from scraper import StravaScraper

email = "[email protected]"
password = "your-password"
scraper = StravaScraper(email, password)
scraper.login()
dashboard_html = scraper.dashboard_content
url = "https://www.strava.com/challenges/rapha-rising-circle-of-death"
response = scraper.get_page(url)
rapha_html = response.content

stravalib-scraper's People

Contributors

loisaidasam avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.