Tweepy error: 'API' object has no attribute 'search_full_archive'
See original GitHub issueHi! I have a problem testing access to older tweets according to documentation in http://docs.tweepy.org/en/latest/api.html#API.search_full_archive
The ordinary search works fine, but trying to change to full archive search I get: ‘API’ object has no attribute ‘search_full_archive’
I’ve already set the environment on Twitter to get the sandbox access and try following code(my original environment name is deleted for safety reasons:
search_words ='Russia'
date_since = "201403010000"
date_to = "201405010000"
numTweets = 100
tweets=tweepy.Cursor(api.search_full_archive (environment_name='MY_ENV_NAME', query=search_words, fromDate=date_since, toDate=date_to)).items(numTweets)
Do you have any idea or examples of a working code? Thank you in advance!
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Tweepy Why did I receive AttributeError for search [closed]
Yes! search is not a valid attribute. According to the docs, you should use search_tweets . Docs are here.
Read more >Tweepy AttributeError API object has no attribute search
How To Fix Tweepy AttributeError API object has no attribute search. Make sure you have latest version of tweepy installed. In [7]:. pip...
Read more >Attributeerror: api object has no attribute search ( Fix It)
Attributeerror: api object has no attribute search error occurs because of the incompatibility of syntax with the current version(V4.x) of tweeps.
Read more >AttributeError: 'API' object has no attribute ' ...
I'm having problems accessing historical content using both of the new search_full_archive and search_30_day features. I've updated tweepy ...
Read more >Search full archive not retweet - Twitter API
Hi, I'am trying to make a query using “search_full_archive” to retrieve a certain amount of tweets that are not retweets.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It seems that the version on PyPi has not been updated. The following worked for me: $ pip uninstall tweepy $ pip install git+https://github.com/tweepy/tweepy.git
Please don’t necrobump old closed issues.
That’s also not relevant to this issue at all.