Does anyone know how to use the search_full_archive feature in tweepy module? I used the cursor feature similar to the regular search, but it didn't work.
import tweepy as tw
api_key = '***'
api_secret_key = '***'
access_token = '***'
access_token_secret = '***'
#Authenticate
auth = tw.OAuthHandler(api_key, api_secret_key)
auth.set_access_token(access_token,access_token_secret)
api = tw.API(auth)
# search tweets
def get_tweets_full(hashtag):
tweetObj_full = tw.Cursor(
self.api.search_full_archive,
environment_name = 'VolcanicDisaster', # Dev environment label from twitter developer dashboard
query = hashtag
)
return tweetObj
get_tweets(hashtag = '#kilauea')
I get an error stating 'API object has no attribute search_full_archive'. However, if I use the regular search method api.search (with its parameters q) instead of api.search_full_archive it works fine. I want to look back for tweets from 2 years ago and require api_full_search, wondering if anyone knows how to use this feature?
I have managed set up the premium account (sandbox version - free) with twitter API, but when I input dir(api) I don't see the search_full_archive method in the output list of methods.