所以这是我的代码来获取一个人的时间表:
from tweepy import OAuthHandler
from tweepy import Cursor
from tweepy import API
import json
ckey = ''
csecret = ''
atoken = ''
asecret = ''
auth = OAuthHandler(ckey, csecret)
auth.set_access_token(atoken, asecret)
api = API(auth)
for status in Cursor(api.user_timeline,id="mytwitterhandle").items(10):
t = status.text.encode("ascii", "ignore")
print status.created_at
#check if the tweet was created yesterday
#if so print t
我想知道,有没有办法让一个人在过去一天发送的所有推文都没有逐一比较?