Once I am trying to use google search api it's showing me an error:
Traceback (most recent call last):
File "C:\Users\Maor Ben Lulu\Desktop\Maor\Python\google\google_Bot.py", line 1, in <module>
from google import google
ModuleNotFoundError: No module named 'google'
My code :
from google import google
import urllib.request
import time
from bs4 import BeautifulSoup
def google_scrape(url):
thepage = urllib.request.urlopen(url)
soup = BeautifulSoup(thepage, "html.parser")
# print(soup.prettify())
return soup.prettify()
### Rest of the code
I did:
pip install google
But still doesn't work.
Modulenotfounderror: no module named google ( Solution ) – The best way to solve this error is to use the pip package manager. It will fetch the executive binary files or wheel package and put them into the required location.
This will solve you issue
But you have to do import google
not from google import google
pip install --upgrade google-api-python-client
Install below mentioned package
pip install google-cloud
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