38321

Tweepy Not filtering on Since

Question:

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

Answer1:

I think you are looking at a <strong>different created_at than the tweet's</strong>. Perhaps the <strong>user's created_at</strong>? <br />Cuz your code seems correct.

Recommend

  • Build Lucene Synonyms
  • writing data to csv from dictionaries with multiple values per key
  • How to import many modules to main and execute
  • How do I move twitter configuration out of the controller? (Rails)
  • Show div on text entry
  • how to fade the toggle so the transition looks softer
  • Android studio 3.1 rebuild project each time to see the changes
  • Can't set character_set_results to latin1
  • psycopg2.ProgrammingError: syntax error at or near “stdin” error when trying to copy_from redshift
  • Tkinter: Determine Widget Position relative to Root Window
  • Allowing my app users to post tweets from a single account
  • “Complex Header” not responsive in current DataTables.net build?
  • MIT Kerberos fails to locate TGT in MSLSA cache
  • Query timeout expired in django-mssql when executing custom SQL directly
  • How to get to older Xcode beta version?
  • Pre-populated SQLite Database not reading properly in Android Studio
  • SQL: Getting the physical size of a subset of a table
  • How do I Dispose a HttpResponseMessage in my Web Api Method?
  • Converting query results into DataFrame in python
  • how to populate a SQLite database and use that database in phonegap?
  • Possible to get mouse events fired when cursor is outside page?
  • How can the INSERT … ON CONFLICT (id) DO UPDATE… syntax be used with a sequence ID?
  • WPF - CanExecute dosn't fire when raising Commands from a UserControl
  • How to attach a node.js readable stream to a Sendgrid email?
  • Google Custom Search with transparent background
  • Insert into database using onclick function
  • Illegal mix of collations for operation for date/time comparison
  • Spring security and special characters
  • What is Eclipse's Declaration View used for?
  • Can I make an Android app that runs a web view in Chrome 39?
  • Hazelcast - OperationTimeoutException
  • Release, debug version and Authorization Google?
  • RestKit - RKRequestDelegate does not exist
  • retrieve vertices with no linked edge in arangodb
  • using conditional logic : check if record exists; if it does, update it, if not, create it
  • Revoking OAuth Access Token Results in 404 Not Found
  • C# - Getting references of reference
  • Hits per day in Google Big Query
  • Linking SubReports Without LinkChild/LinkMaster
  • Python/Django TangoWithDjango Models and Databases