Quantcast
Viewing latest article 2
Browse Latest Browse All 2

Parsing Twitter json with Python

I'm using twython library in python to dump public tweets of my own. Data are downloaded in json format refer : https://api.twitter.com/1.1/statuses/home_timeline.json

How to print all data line by line, like

    print "Tweet : %s" %tweet['text']#status    print "Create Time : %s" %tweet['created_at']#time of tweet    print "Geo location : %s" %tweet['geo']#geo location if avail    print "Favorite Count : %s" %tweet['favorite_count']    print "Source : %s" %tweet["source"]    print "Retweeted : %s" %tweet["retweeted"]    print "contributors :%s" %tweet["contributors"]    print "truncated : %s" %tweet["truncated"]    print "is_quote_status : %s" %tweet["is_quote_status"]    print "in_reply_to_status_id : %s" %tweet["in_reply_to_status_id"]    print "Unique ID : %s" %tweet["id"]    print "coordinates : %s" %tweet["coordinates"]    print "in_reply_to_screen_name : %s" %tweet["in_reply_to_screen_name"]    print "retweet_count : %s" %tweet["retweet_count"]    print "in_reply_to_user_id : %s" %tweet["in_reply_to_user_id"]    print "favorited :%s" %tweet["favorited"]

Viewing latest article 2
Browse Latest Browse All 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>