Description
i have cloned your repo and added to streamlit
and I also created developer API keys and secret and kept in streamlit secrets
but I am getting error in my deployment
https://mlvprasadofficial-mlv-app-twitter-analyzer-streamlit-app-cmemuj.streamlit.app/
error :
"
tweepy.errors.Forbidden: This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs (if you're on Streamlit Cloud, click on 'Manage app' in the lower right of your app).
Traceback:
File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
exec(code, module.dict)
File "/app/mlv-app-twitter-analyzer/streamlit_app.py", line 443, in
tweets = search_twitter(**search_params)
File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/legacy_caching/caching.py", line 629, in wrapped_func
return get_or_create_cached_value()
File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/legacy_caching/caching.py", line 609, in get_or_create_cached_value
return_value = non_optional_func(*args, **kwargs)
File "/app/mlv-app-twitter-analyzer/streamlit_app.py", line 331, in search_twitter
tweets = UncacheableList(
File "/home/appuser/venv/lib/python3.9/site-packages/tweepy/cursor.py", line 86, in next
return self.next()
File "/home/appuser/venv/lib/python3.9/site-packages/tweepy/cursor.py", line 286, in next
self.current_page = next(self.page_iterator)
File "/home/appuser/venv/lib/python3.9/site-packages/tweepy/cursor.py", line 86, in next
return self.next()
File "/home/appuser/venv/lib/python3.9/site-packages/tweepy/cursor.py", line 167, in next
data = self.method(max_id=self.max_id, parser=RawParser(), *self.args, **self.kwargs)
File "/home/appuser/venv/lib/python3.9/site-packages/tweepy/api.py", line 33, in wrapper
return method(*args, **kwargs)
File "/home/appuser/venv/lib/python3.9/site-packages/tweepy/api.py", line 46, in wrapper
return method(*args, **kwargs)
File "/home/appuser/venv/lib/python3.9/site-packages/tweepy/api.py", line 1309, in search_tweets
return self.request(
File "/home/appuser/venv/lib/python3.9/site-packages/tweepy/api.py", line 265, in request
raise Forbidden(resp)
"
Activity
MlvPrasadOfficial commentedon Feb 4, 2023
453 - You currently have Essential access which includes access to Twitter API v2 endpoints only. If you need access to this endpoint, you’ll need to apply for Elevated access via the Developer Portal. You can learn more here: https://developer.twitter.com/en/docs/twitter-api/getting-started/about-twitter-api#v2-access-leve