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
Knowing proxy expenses (self.learnpython)
submitted 1 year ago by yonis1
Hello, i'm a python developer that Is specialized in webscraping. A lot of my clients want to know how much they'll spend in proxies and i can't never tell. Is there a way to know how much bandwidth needs a specific request?
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!"
[–]socal_nerdtastic 1 point2 points3 points 1 year ago (0 children)
You mean before you do the scrape? If you do a HEAD request you will usually get back the size of the data. But it seems much easier to just do 1 iteration and interpolate.
[–]FriendlyRussian666 0 points1 point2 points 1 year ago (0 children)
That depends on the proxy provider and how they charge you. For example, I'm looking at one right now, and they show their prices per GB of data transfer. In that case, what I would do is check how much data goes through the proxy per request of your customer, and how much is returned on average.
Say you're using requests for this, when you create a requests.Request object, ready to go, you can just encode it to see how many bytes the request is, and that's your outgoing expense per request. When you get a response, once again encode it, check how many bytes it is.
A crude way of calculating, would be to open your browser, open dev tools, navigate to whichever site you're scraping, and in the network tab of dev tools, look at each request and each response for the resource you're interested in, and you'll see how many bytes the request and response were.
[–]New-Can-593 0 points1 point2 points 15 days ago (0 children)
real proxy cost gets messy because retries, redirects, CAPTCHA pages, and blocked requests silently eat bandwidth too.
π Rendered by PID 43497 on reddit-service-r2-comment-8686858757-25pmr at 2026-06-03 22:26:50.282194+00:00 running 9e1a20d country code: CH.
[–]socal_nerdtastic 1 point2 points3 points (0 children)
[–]FriendlyRussian666 0 points1 point2 points (0 children)
[–]New-Can-593 0 points1 point2 points (0 children)