Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kyoshidajp/strava
Python library for Strava.
https://github.com/kyoshidajp/strava
Last synced: about 2 months ago
JSON representation
Python library for Strava.
- Host: GitHub
- URL: https://github.com/kyoshidajp/strava
- Owner: kyoshidajp
- Created: 2013-01-28T22:27:22.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-01-31T14:50:53.000Z (almost 12 years ago)
- Last Synced: 2023-04-06T16:45:53.456Z (almost 2 years ago)
- Language: Python
- Size: 121 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
strava
======Python library for Strava. Upload or delete activity data.
Upload activity data not required latitude, and longitude.
Delete activity is delete all your activities.
Requirements
------------
Using external library.+ [mechanize](http://wwwsearch.sourceforge.net/mechanize/)
+ [BeautifulSoup](http://www.crummy.com/software/BeautifulSoup/)
+ [jognote.py](https://github.com/kyoshidajp/jognote/blob/master/jognote.py)
Sorry you can't get jognote.py at pipy. Download (or checkout) that, and add your module search path.Usage
------
### upload activities ###
from strava import Strava
strava = Strava(strava_email, strava_password)
activity_type = 'Run'
activity_country = 'Japan'
activity_location = 'Yokohama'
activity_start_date = '01/26/2013'
activity_name = '%s %s' % (activity_type, activity_start_date)
activity_start_time_of_day = '00:00:00'
activity_elapsed_time = '01:00:00'
activity_distance = '10'
strava.add_activity(activity_type, activity_name, activity_country,
activity_location, activity_start_date,
activity_start_time_of_day, activity_elapsed_time,
activity_distance)### delete activities ###
Simple way is execute by command line.$ python strava.py -e strava_email -p strava_password
or
from strava import Strava
strava = Strava(strava_email, strava_password)
strava.delete_activities()