Jason Vondersmith
Jason Vondersmith

Reputation: 147

Tweepy Not filtering on Since

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

Upvotes: 0

Views: 422

Answers (1)

Alanoud Alsalman
Alanoud Alsalman

Reputation: 31

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.

Upvotes: 1

Related Questions