Hi,
Im not too familiar with python and searchtweets package. I installed searchtweets package but Im getting following error.
!pip install searchtweets
Collecting searchtweets
Collecting tweet-parser (from searchtweets)
Collecting pyyaml (from searchtweets)
Collecting requests (from searchtweets)
Using cached https://files.pythonhosted.org/packages/f1/ca/10332a30cb25b627192b4ea272c351bce3ca1091e541245cccbace6051d8/requests-2.20.0-py2.py3-none-any.whl
Collecting idna<2.8,>=2.5 (from requests->searchtweets)
Using cached https://files.pythonhosted.org/packages/4b/2a/0276479a4b3caeb8a8c1af2f8e4355746a97fab05a372e4a2c6a6b876165/idna-2.7-py2.py3-none-any.whl
Collecting urllib3<1.25,>=1.21.1 (from requests->searchtweets)
Using cached https://files.pythonhosted.org/packages/8c/4b/5cbc4cb46095f369117dcb751821e1bef9dd86a07c968d8757e9204c324c/urllib3-1.24-py2.py3-none-any.whl
Collecting certifi>=2017.4.17 (from requests->searchtweets)
Using cached https://files.pythonhosted.org/packages/56/9d/1d02dd80bc4cd955f98980f28c5ee2200e1209292d5f9e9cc8d030d18655/certifi-2018.10.15-py2.py3-none-any.whl
Collecting chardet<3.1.0,>=3.0.2 (from requests->searchtweets)
Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl
Installing collected packages: tweet-parser, pyyaml, idna, urllib3, certifi, chardet, requests, searchtweets
Successfully installed certifi-2018.10.15 chardet-3.0.4 idna-2.7 pyyaml-3.13 requests-2.20.0 searchtweets-1.2.1 tweet-parser-1.13.1 urllib3-1.24
from searchtweets import ResultStream, gen_rule_payload, load_credentials
premium_search_args = load_credentials("~/.twitter_keys.yaml",
yaml_key=“search_tweets_premium”,
env_overwrite=False)
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-7-1a8baa28f761> in <module>
----> 1 from searchtweets import ResultStream, gen_rule_payload, load_credentials
2
3
4 premium_search_args = load_credentials("~/.twitter_keys.yaml",
5 yaml_key="search_tweets_premium",
ModuleNotFoundError: No module named 'searchtweets'
Is there anyone familiar with this problem
Thank you.