question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HTTPError: Too Many Requests

See original GitHub issue

Running the sample code

from googlesearch import search for url in search('"Breaking Code" WordPress blog', stop=20): print(url)

I always obtain this error

File \urllib\request.py line 650 in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) HTTPError: Too Many Requests

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Fulvioocommented, Dec 12, 2019

It was quite immediate and I dont use tor. Anyway I’ve then restarted the internet connection in order to obtain a differen IP, and now it works. I think I shall capture this error and create an exception in order to handle it with a timeout or other workarounds. You can close the issue or mark as enhancement, as you prefer

0reactions
orcjuncommented, Aug 12, 2020

I tried deleting $home folder’s .google-cookie file, and it works!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to avoid HTTP error 429 (Too Many Requests) python
Receiving a status 429 is not an error, it is the other server "kindly" asking you to please stop spamming requests.
Read more >
429 Error – Too Many Requests HTTP Code Explained
The 429 error is an HTTP status code. It tells you when the use of an internet resource has surpassed the number of...
Read more >
429 Too Many Requests - HTTP - MDN Web Docs
The HTTP 429 Too Many Requests response status code indicates the user has sent too many requests in a given amount of time...
Read more >
How to Fix 429 Too Many Requests Error Code: 6 Proven ...
As mentioned before, the HTTP 429 error happens when the server detects too many attempts within a short period of time. This can...
Read more >
How to Fix 429 Too Many Requests Error
The HTTP 429 error is returned when a user has sent too many requests within a short period of time. The 429 status...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found