Closed gabriead closed 2 years ago
Hi @gabriead,
It seems to work for me.
Did you get the same error by re-running the code ? If so, Does it work if with time.sleep(5) ?
Actually, if you run only the above code, there is at most 60 requests sent per minute which is far from google request limit (10 request per second if i am not wrong).
Best regards,
Tuan.
Hello.
Unfortunately happened same with me..
example code is this
import os import sys import time import logging import requests from people_also_ask import get_related_questions, generate_related_questions
for question in generate_related_questions("how to file divorce in California"): print(question)
error is this
python version (i'm on centos 7)
Python 3.6.8 (default, Nov 16 2020, 16:55:22) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux Type "help", "copyright", "credits" or "license" for more information.
import 'readline' # <_frozen_importlib_external.ExtensionFileLoader object at 0x7fe3cc7b26d8> import 'atexit' # <class '_frozen_importlib.BuiltinImporter'>
import 'rlcompleter' # <_frozen_importlib_external.SourceFileLoader object at 0x7fe3cc7b27b8>
Thanks so much!
i am having same issue
Hello,
Thank you for raising this issue. The query got banned from google. I'll keep you posted on the fix. Same issue here #8 , so i closed this issue.
HI @lagranges,
first of all great tool! I am iterating over a list of approx. 1000 questions and calling the get_answer() function. After approx. 100 questions I am getting a ´´´GoogleSearchRequestFailedError ´´´ from google.py. I have included a sleep before calling get_answer, but it still occurs. Does this have to do with Googles limit on API calls?