问题
I have found many examples of the tweepy cursor where a parameter is "since = "YYYY-MM-DD"". However, in my code below, it is returning tweets much older than the date I specify. Why?
since = "2017-9-20"
tweepy.Cursor(api.search,
q="nba -filter:retweets",
since = since,
rpp=100,
result_type="recent",
include_entities=True,
lang="en",
).items(10)
tweet.text
An example of a tweet it returns is:
created_at=datetime.datetime(2011, 9, 19, 18, 12, 50) id=376333795
回答1:
I think you are looking at a different created_at
than the tweet's. Perhaps the user's created_at
?
Cuz your code seems correct.
来源:https://stackoverflow.com/questions/46864633/tweepy-not-filtering-on-since