I'm a newbie to Python and JSON as well. I installed twython to "speak" to the Twitter API. I use Python 2.7 on a mac.
I would like to get my mentions through the API. The program should identify the Twitter user who mentioned me.
I try:
t = Twython(...)
men = t.get_mentions_timeline()
The user is mentioned once, print men shows a lot of stuff like this:
[{u'contributors': None, u'truncated': False, u'text': .... u'Sun May 26 09:18:55 +0000 2013', u'in_reply_to_status_id_str': None, u'place': None}]
Somewhere in this stuff I see all the things I would like to extract from the response.
How can I extract the screen_name
?
I'm quite confused with json.dumps
or json.loads
- shall I work with json
or simplejson
?