How search in Google by Python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How search in Google by Python?

I use ' pip install google ' but when I import it and call it 'search' function raise an exception that it doesn't have this function. what is wrong? if there is a better way say.thank you 😉

17th Sep 2018, 2:36 PM
Mohammad Nazemi
3 Answers
+ 5
did you import google or googlesearch because I think setup file installs it with googlesearch name
17th Sep 2018, 3:40 PM
Mert Yazıcı
Mert Yazıcı - avatar
+ 3
I doubt if there's any module named Google
17th Sep 2018, 2:53 PM
Dlite
Dlite - avatar
0
I found this that you might find useful. https://stackoverflow.com/questions/35244991/importerror-with-googlesearch-package-in-JUMP_LINK__&&__python__&&__JUMP_LINK As Mert said, the module is called googlesearch
17th Sep 2018, 4:02 PM
benjamin