Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 33 lines (22 sloc) 0.878 kB
5417974 @bnmrrs Dropped all the headings by one
authored
1 # Unofficial Runkeeper-API
ce43f6c @bnmrrs Moved readme to markdown
authored
2
5417974 @bnmrrs Dropped all the headings by one
authored
3 ## Overview
ce43f6c @bnmrrs Moved readme to markdown
authored
4 The Runkeeper-API is used to interact with Runkeeper (http://runkeeper.com)
5 Runkeeper does provide an official API so BeautifulSoup is used to
6 scrae pages. Currently this package can only be used for reading.
7
5417974 @bnmrrs Dropped all the headings by one
authored
8 ## Installation
ce43f6c @bnmrrs Moved readme to markdown
authored
9
10 $ sudo python setup.py install
11
8a6fcd9 @bnmrrs Added a usage and simple example to the readme
authored
12 ## Usage
13
14 ### Get distance
15 A simple example for getting the total distance a user has covered
16
17 <pre><code>from runkeeper import User
18
19 user = User("bnmrrs")
20 activities = user.get_all_activities()
21
22 total_distance = 0
23 for activity in activities:
24 total_distance += activity.get_distance()
25
26 print "%dkm" % total_distance</code></pre>
27
5417974 @bnmrrs Dropped all the headings by one
authored
28 ## Dependencies
ce43f6c @bnmrrs Moved readme to markdown
authored
29 [Beautiful Soup](http://www.crummy.com/software/BeautifulSoup/)
30 [simplejson](http://www.undefined.org/python/)
31
5417974 @bnmrrs Dropped all the headings by one
authored
32 ## License
1ce30c0 @bnmrrs Fixed package name in the license
authored
33 This package is licensed under the [MIT License](http://www.opensource.org/licenses/mit-license.php).
Something went wrong with that request. Please try again.