maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Problem with python Facebook API -simple code (https://talk.maemo.org/showthread.php?t=75002)

mikedemon 2011-07-17 09:44

Problem with python Facebook API -simple code
 
Hello,

I try to fetch some data via the version facebook API using python. However I just want to see the total number of followers my friends have . please give me sample code

[

marxian 2011-07-17 10:25

Re: Problem with python Digg API -simple code
 
The dict object that you posted has bad syntax ('count' value and 'icon' value). I adjusted it to

Code:

user = {u'count': '.diggstatic.com/user/6754998/r.png', u'gender': u'', u'diggs': 64104, u'comments': 226, u'followers': 3582, u'location': u'Lahore', u'following': 217, u'submissions': 441, u'icon': u'http://cdn1.diggstatic.com/user/6754998/p.png', u'timestamp': 1310895431, u'cursor': u'', u'version': u'2.0', u'authorized': '0', u'data': u'users', u'method': u'user.getInfo', u'user': None}
and was able to print a value by entering

Code:

print user['followers']
3582



All times are GMT. The time now is 09:22.

vBulletin® Version 3.8.8