https://github.com/ericflo/weightbot
An unofficial API into WeightBot.com
https://github.com/ericflo/weightbot
Last synced: 8 months ago
JSON representation
An unofficial API into WeightBot.com
- Host: GitHub
- URL: https://github.com/ericflo/weightbot
- Owner: ericflo
- License: bsd-3-clause
- Created: 2009-08-16T02:05:27.000Z (almost 17 years ago)
- Default Branch: master
- Last Pushed: 2009-08-16T02:14:29.000Z (almost 17 years ago)
- Last Synced: 2025-09-01T07:09:25.411Z (10 months ago)
- Language: Python
- Homepage:
- Size: 74.2 KB
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.txt
Awesome Lists containing this project
README
This module is an unofficial API into WeightBot_. Right now it's very simple
because WeightBot_ is simple.
Here's an example of how you can use it::
from weightbot import WeightBot
from pprint import pprint
wb = WeightBot('me@example.com', 'my_password')
data = wb.get_data()
pprint(data)
And then running that program might result in::
[{'date': datetime.date(2009, 8, 6), 'kilograms': 91.2, 'pounds': 201.1},
{'date': datetime.date(2009, 8, 7), 'kilograms': 90.1, 'pounds': 198.7},
{'date': datetime.date(2009, 8, 8), 'kilograms': 90.0, 'pounds': 198.5},
{'date': datetime.date(2009, 8, 9), 'kilograms': 89.8, 'pounds': 198.0},]
You could also get at the raw csv file by doing ``wb.get_csv_data``.
Hope you enjoy it!
.. _WeightBot: http://tapbots.com/weightbot