Tweepy Not filtering on Since

可紊 提交于 2019-12-13 03:50:58

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!