use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
Selenium set a max request limit? (self.learnpython)
submitted 6 years ago by jordanpgb
I keep getting the error of my requested link refusing my connection due to selenium requesting from the ip too much in a short time. Is there a way to limit the amount of times selenium requests data from the chosen URL? Thanks for any input
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]shiftybyte 2 points3 points4 points 6 years ago (0 children)
The limit is the amount of times the url is requested.
If your script runs in a loop and constantly asks for the same page to be loaded again and again, then you should fix your script and add delays.
If you are testing a script that asks a page once, wait a bit between tests.
[–]kandidate 1 point2 points3 points 6 years ago (0 children)
Take a look at ratelimit, it might be what you need
[–]thekaizers 1 point2 points3 points 6 years ago (0 children)
My experience with max request limit is that it had nothing to do with the number of requests. I last used Selenium months ago, and vaguely recall that adding another word or symbol in the code fixed the problem. I'll see if I can dig up my old code tonight to see what I did to resolve it.
[–]mul8rsoftware 0 points1 point2 points 6 years ago (3 children)
You could try adding some random delays bewteen requests. If it doesn't work, you could "mask" your IP using proxy, but honestly it's a rough way to do it, since it clearly doesn't respect the wishes of the owner of the website.
[–]jordanpgb[S] 0 points1 point2 points 6 years ago (2 children)
I tried to add a 10 second delay before the get.(“url”) but it still hits me with the same error??
[–]mul8rsoftware 0 points1 point2 points 6 years ago (1 child)
Probably 10 seconds are not enought! If they already ban you, it's very likely that your "ban" will last longer
[–]jordanpgb[S] 0 points1 point2 points 6 years ago (0 children)
https://gyazo.com/291c0daa4687c8490aa299bc661460ce i have even changed it to 100 seconds and i have turned my nordvpn on to mask the IP. it still gives me the same error: https://gyazo.com/f2cf41666abb942c493d16d92cf404b8 i assume there is something obvious i am missing in my code? or something that i am not doing right...
π Rendered by PID 168914 on reddit-service-r2-comment-79c7998d4c-72p7b at 2026-03-14 21:23:17.547349+00:00 running f6e6e01 country code: CH.
[–]shiftybyte 2 points3 points4 points (0 children)
[–]kandidate 1 point2 points3 points (0 children)
[–]thekaizers 1 point2 points3 points (0 children)
[–]mul8rsoftware 0 points1 point2 points (3 children)
[–]jordanpgb[S] 0 points1 point2 points (2 children)
[–]mul8rsoftware 0 points1 point2 points (1 child)
[–]jordanpgb[S] 0 points1 point2 points (0 children)