question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

.setUntil() causes no return

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:13

github_iconTop GitHub Comments

1reaction
Mottlcommented, Nov 3, 2018

@jmcnab57 @rickystream94 GetOldTweets3 0.0.6 adds random selection of User-Agent header. Upgrade with pip install -U GetOldTweets3

1reaction
Mottlcommented, Oct 31, 2018

@rickystream94

I already had the latest version.

I’ve pushed 2 more commits an hour ago. Just check them.

Is it maybe because of some kind of blocking from Twitter?

Possibly. Some people said the new UA helps. I will add random choice of User-Agent soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mockito.When method not able to return mocked object when ...
When i debug the object. I'm not able to see the mock data in it. is there anything which I am missing? Below...
Read more >
F - Operating System Issues - FLTK
The return value is non-zero if FLTK understood the event. If the window does not belong to FLTK and the add_handler() functions all...
Read more >
ISPF messages starting with ISP - IBM
Return code of "36" (ISPTABL file not allocated) from the SELECT service attempting to create an ISPF Keylist. (The keylist update program received...
Read more >
SQLBindParameter Function - ODBC API Reference
If the procedure returns one or more result sets, the *StrLen_or_IndPtr buffer is not guaranteed to be set until all results have been...
Read more >
Error and Transaction Handling in SQL Server Part Two
What causes a transaction to be doomed or not is a very messy area, ... SQL Server provides the system function xact_state() which...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found