Friday, June 15, 2012

Fat Secret calorie counter access with python

This post complements my earlier discussion of the Withings scale API here:
I've written a convenience library in python that simplifies the process of retrieving protein, carbohydrate, fat, and calorie data from Fatsecret along with several other features from the REST API. To make use of the library you'll need to register as a developer at the link below:
After registering you will be given a consumer/API key and secret which you will need to use my python library. Once you have your key and secret, download the python library with the following command:

git clone

The library comes with the example below that demonstrates its usage. To use the example, replace the strings 'your_key_goes_here' and 'your_secret_goes_here' with the key and secret you were assigned after registering as a developer.
Note that the example above makes use of pandas to plot timeseries. You can get the latest pandas with this command:

git clone

I've tested the example above with the stable 0.7.3 release as well.
Once you paste your key and secret into place and install pandas you can run the example as follows:


Assuming you already have some data recorded with fatsecret, you should get a plot like the one below after running (click on the image to see a larger copy):


  1. Replies
    1. I am glad that I saw this post. It is informative blog for us and we need this type of blog thanks for share this blog, Keep posting such instructional blogs and I am looking forward for your future posts. Python Projects for Students Data analytics is the study of dissecting crude data so as to make decisions about that data. Data analytics advances and procedures are generally utilized in business ventures to empower associations to settle on progressively Python Training in Chennai educated business choices. In the present worldwide commercial center, it isn't sufficient to assemble data and do the math; you should realize how to apply that data to genuine situations such that will affect conduct. In the program you will initially gain proficiency with the specialized skills, including R and Python dialects most usually utilized in data analytics programming and usage; Python Training in Chennai at that point center around the commonsense application, in view of genuine business issues in a scope of industry segments, for example, wellbeing, promoting and account. Project Center in Chennai

  2. What Happens After a First Kiss Following Past Sexual. Not Sure If the Relationship Is Working? Answer These. Making Realistic PlansWho Is David Rovics?. Obviously, though, of course, what looms large ahead is are the elections in October. That will, of course, place a lot of pressure on both sides on the Taliban to prove that they still have the means to exert pressure in places like Kabul and other big cities, and I think for the Afghan government, that they also have the ability to balance this election process against that pressure. Forces in Afghanistan, General John Nicholson, just a couple of weeks ago.

    It's unclear what became of those complaints under the previous administration, the officials said. The inspector general's office did not respond to a request for comment.Many of the Longchamp Soldes Destockage men and women Coleman Ray Ban Sale UK hired were unqualified yet are still at the agency, officials said. Long said his staff interviewed 73 current and former employees and took sworn statements from 98 people.Long said many valued employees in the human resources department left because of Coleman's "unacceptable leadership style, good people who wouldn't put up with it."The Cheap Oakley Sunglasses preliminary investigation, completed Friday, found Bolsos Michael Kors Baratos that an official described as the former chief component human capital officer had sexual encounters with two subordinates, one in 2015 and the other in 2017 continuing into this year.

  3. Both things are possible if you carry Michael Kors Handbags Wholesale. If you are a woman who goes for innovative designs, a designer Michael Kors Bags On Sale is perfect for you. Offering a huge selection of chic purses, handbags, shoes and accessories, Michael Kors Outlet Online Store celebrates womanhood in an entirely unique way. Michael Kors Factory Outlet Online Store At Wholesale Price are one of the most sought-after handbags worldwide. We all agree that diamonds are a woman's best friend; however Official Coach Factory Outlet Online are absolutely next in line. To Coach Outlet Sale aficionados, don't fret because we have great news: a discount Official Coach Outlet Online isn't hard to find. If you are a smart shopper looking for a good buy and great deals on your next handbag purchase, you can go to Official Coach Outlet Online.

    Friendly Links: Toms Shoes Womens | Toms Clearance