extracting data from the tweets of the twitter using python
问题 I want to extract data like tweet id , twitter username, twitter id of the user who has fb.me link displayed in his tweet and also his fb id and fb username. I have to do this for 200 such tweets. My code : from twitter.oauth import OAuth import json import urllib2 from twitter import * ckey = '' csecret = '' atoken = '' asecret = '' auth = OAuth(atoken,asecret,ckey,csecret) t_api = Twitter(auth=auth) search = t_api.search.tweets(q='http://on.fb.me',count=1) print search print 'specific data'