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.

Tweepy error: 'API' object has no attribute 'search_full_archive'

See original GitHub issue

Hi! 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:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
dplefevrecommented, Nov 10, 2020

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

0reactions
Harmon758commented, Jun 3, 2022

Please don’t necrobump old closed issues.

That’s also not relevant to this issue at all.

Read more comments on GitHub >

github_iconTop 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 >

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