We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
serpapi.search
The developer team from a high-volume customer reached out that we should throw a proper error on the serpapi.search.
I've suggested using a try-catch exception to handle errors. For example:
try: search = serpapi.search(q="CoffeeMilk", api_key="", engine="google", location="Austin, Texas", hl="en", gl="us") print(search) print("----------------") except Exception as e: if "429" in str(e): print("You are being rate limited") print(e) else: print("An error occurred")
Intercom
sidenote: we should probably update our readme to show how to handle errors.
readme
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The developer team from a high-volume customer reached out that we should throw a proper error on the
serpapi.search
.I've suggested using a try-catch exception to handle errors. For example:
Intercom
sidenote: we should probably update our
readme
to show how to handle errors.The text was updated successfully, but these errors were encountered: