Re: What is the fastest way to do 400 HTTP requests using requests library?

2016-01-05 Thread Ian Kelly
On Tue, Jan 5, 2016 at 10:02 AM, Paul Rubin wrote: > Steven D'Aprano writes: >> Maybe they're stress-testing a web server, or they just want to download >> things in a rush. > > They're stress-testing a web server through a tor proxy? This sounds > abusive to me. > > I also wonder whether 400 re

Re: What is the fastest way to do 400 HTTP requests using requests library?

2016-01-05 Thread Paul Rubin
Steven D'Aprano writes: > Maybe they're stress-testing a web server, or they just want to download > things in a rush. They're stress-testing a web server through a tor proxy? This sounds abusive to me. I also wonder whether 400 referred to the HTTP 400 error code rather than the number of requ

Re: What is the fastest way to do 400 HTTP requests using requests library?

2016-01-05 Thread Tim Chase
On 2016-01-05 20:38, Steven D'Aprano wrote: > On Tue, 5 Jan 2016 07:53 pm, Tony van der Hoff wrote: > > > Why would someone want to make 400 HTTP requests in a short time? > > For the same reason they want to make 400 HTTP requests over a long > time, except that they're in a hurry. > > Maybe th

Re: What is the fastest way to do 400 HTTP requests using requests library?

2016-01-05 Thread Steven D'Aprano
On Tue, 5 Jan 2016 07:53 pm, Tony van der Hoff wrote: > Why would someone want to make 400 HTTP requests in a short time? For the same reason they want to make 400 HTTP requests over a long time, except that they're in a hurry. Maybe they're stress-testing a web server, or they just want to down

Re: What is the fastest way to do 400 HTTP requests using requests library?

2016-01-05 Thread Tony van der Hoff
On 05/01/16 00:51, Ian Kelly wrote: > On Mon, Jan 4, 2016 at 4:38 PM, Steven D'Aprano wrote: >> On Tue, 5 Jan 2016 07:50 am, livems...@gmail.com wrote: >> >>> So what is the fastest way to make 400 HTTP requests using "requests" >>> library and also using tor proxy? >> >> >> Since this will be I/O

Re: What is the fastest way to do 400 HTTP requests using requests library?

2016-01-04 Thread Ian Kelly
On Mon, Jan 4, 2016 at 4:38 PM, Steven D'Aprano wrote: > On Tue, 5 Jan 2016 07:50 am, livems...@gmail.com wrote: > >> So what is the fastest way to make 400 HTTP requests using "requests" >> library and also using tor proxy? > > > Since this will be I/O bound, not CPU bound, probably use separate

Re: What is the fastest way to do 400 HTTP requests using requests library?

2016-01-04 Thread Steven D'Aprano
On Tue, 5 Jan 2016 07:50 am, livems...@gmail.com wrote: > So what is the fastest way to make 400 HTTP requests using "requests" > library and also using tor proxy? Since this will be I/O bound, not CPU bound, probably use separate threads. Push the 400 requests into a queue, then create N threa

What is the fastest way to do 400 HTTP requests using requests library?

2016-01-04 Thread livemsn22
So what is the fastest way to make 400 HTTP requests using "requests" library and also using tor proxy? Best regards -- https://mail.python.org/mailman/listinfo/python-list