Google-Search-API icon indicating copy to clipboard operation
Google-Search-API copied to clipboard

AttributeError: module 'google' has no attribute 'search'

Open zahraegh opened this issue 7 years ago • 2 comments

What is the solution to this error? I got really confused, because none of the solutions I could find out there work for me. I am running 3.6 version.

zahraegh avatar Feb 27 '18 05:02 zahraegh

Can you post a minimal working example (few lines of code, that cause your problem)? Is it possible you imported it like import google instead of from google import google ? If you want to use it like the example in the README with google.search() try the second import method..

lukruh avatar Mar 10 '18 16:03 lukruh

just wanted to add, import google does not work, from google import * also does not work.

kethan1 avatar Sep 16 '20 05:09 kethan1