Ask coding questions

← Back to all posts
Why "from googlesearch import search" gives a error?
h
Harkinian (1)

So i am trying to scrape google results but...

When i do "from googlesearch import search" like usual it just gives me this error:

" Traceback (most recent call last):
File "main.py", line 1, in <module>
from googlesearch import search
ModuleNotFoundError: No module named 'googlesearch' "

Python version: Python 3 (using replit.com obviously)

Help is appreciated!

Answered by VulcanWM (2778) [earned 5 cycles]
View Answer
Comments
hotnewtop
VulcanWM (2778)

Try doing
pip install googlesearch

Harkinian (1)

@VulcanWM

ok pip install google worked thanks