Google-Search-API
Google-Search-API copied to clipboard
ImportError
Hi, I just ran a simple script:
from google import google num_page = 3 search_results = google.search("Hello World", num_page)
It is giving an error even though I have installed the library through pip.
Error:
File "
What should I do to correct it?
@abenassi I did this, I get this error
>>> import imp
>>> google = imp.load_source('google', '/home/arjun/.local/lib/python2.7/site-packages/google/__init__.py')
>>> num_page = 3
>>> search_results = google.search("This is my query", num_page)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'search'
>>> google
<module 'google' from '/home/arjun/.local/lib/python2.7/site-packages/google/__init__.pyc'>
Related question .
Likely related https://github.com/abenassi/Google-Search-API/issues/40