How to validate a bunch of proxies against a URL?

Posted by NJTechGuy on Stack Overflow See other posts from Stack Overflow or by NJTechGuy
Published on 2010-04-06T20:34:12Z Indexed on 2010/04/06 21:03 UTC
Read the original article Hit count: 181

Filed under:
|
|

I have a list of 100 proxies. The URL I am interested in is abc.com. I want to check the number of proxies which can successfully fetch this URL and the time taken for the same. I am hoping I made sense. I am a Python noob. I am looking for a code snippet. A helping hand is really appreciated :)

Proxies :

200.43.54.212
200.43.54.212
200.43.54.212
200.43.54.212

URL :

abc.com

Desired result :

Proxy          isGood Time

200.43.54.112  n      23.12  
200.43.54.222  n      12.34 
200.43.54.102  y      11.09
200.43.54.111  y       8.85

p.s : All the above proxies have ports either 80 or 8080

© Stack Overflow or respective owner

Related posts about proxy

Related posts about python