.setUntil() causes no return
See original GitHub issueI was not experiencing this issue a couple days ago but as of today having .setUntil() criteria causes the return of an empty list while removing it will return something. The following is the example i used with two separate criteria.Note that directly using the “url” created by the getJsonResponse function in a browser for both criteria will get the JSON just fine containing full data.
criteria_one = got3.manager.TweetCriteria().setQuerySearch("bitcoin").setSince(
"2015-09-10").setMaxTweets(1).setUntil("2015-09-12").setLang("en")
criteria_two = got3.manager.TweetCriteria().setQuerySearch("bitcoin").setSince(
"2015-01-01").setMaxTweets(1).setLang("en")
tweet_one = got3.manager.TweetManager.getTweets(criteria_one)[0]
tweet_two = got3.manager.TweetManager.getTweets(criteria_two)[0]
Looking at the data in the variable dataJson in the getJsonResponse function shows that the “has_more_items” is always false when .setUntil() is present but true when not present. Additionally the “min-position” is ‘cm+55m–’. which is not the typical full string value. Behavior was the same in the newer fork https://github.com/Mottl/GetOldTweets3/tree/master/GetOldTweets3 Am i missing something obvious? I’ve been banging my head trying to debug.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:13
Top GitHub Comments
@jmcnab57 @rickystream94 GetOldTweets3 0.0.6 adds random selection of User-Agent header. Upgrade with
pip install -U GetOldTweets3
@rickystream94
I’ve pushed 2 more commits an hour ago. Just check them.
Possibly. Some people said the new UA helps. I will add random choice of
User-Agent
soon.