Hi,
When I execute search_tweets.py (copied the contents into test.py) as shown below I receive an error which doesn’t tell me much. Has anyone run into this issue? I am new to this and I appreciate someone can assist.

I don’t have a copy of your code, but this error means that resp.json() is returning an object that does not have a property called “error”. You can try printing resp.json() and see what it actually is returning.

I am also trying to get data from premium search API and currently using its sandbox version. But I failed to execute the code given at https://github.com/twitterdev/search-tweets-python. Can u please provide me the code that you are using to crawl the dataset. I will replace the keys and other things with mine.

You have python version 2.7, you need Python 3.3 or later to run search_tweets.py

If you have python 3.3 or higher and pip install search_tweets worked without errors then you may have multiple versions of python installed (not uncommon) so you’ll need to make sure you create a python 3 environment for this.