When I run this example code on my local machine:
from serpapi import GoogleSearch
params = {
"api_key": "secret_api_key",
"engine": "google",
"q": "Coffee",
"location": "Austin, Texas, United States",
"google_domain": "google.com",
"gl": "us",
"hl": "en"
}
search = GoogleSearch(params)
results = search.get_dict()
I get the error:
ModuleNotFoundError: No module named 'serpapi'
I can't find anything on Google/Bing search nor the documentation on how to go about installing this module or where it is even located. It does not respond to a pip install.
Use can use the below command to solve the above issue \
pip install google-search-results
You can find more details on the GitHub link
I was having the same issue even after installing google-search-results
Problem: the selected interpreter on pycharm was on a different virtual environment that did not have Google-search installed
Solution: on your IDE add/select interpreter from working directory/virtual env where google-search-results was installed
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With