how to use urllib.urlretrieve to fetch files by proxy

721 views
Skip to first unread message

QQ Ding

unread,
Nov 13, 2014, 1:58:17 AM11/13/14
to python-g...@googlegroups.com
I am doing puzzle exercise, but I use proxy to get on to the internet. So how to  use urllib.urlretrieve to fetch files by proxy ?

Thanks  in advance.

Jimmy Diep

unread,
Feb 5, 2015, 3:02:59 PM2/5/15
to python-g...@googlegroups.com
Haven't tried, but you should be able to use the urllib.request.ProxyHandler() to setup the proxy prior to the urllib.urlretrieve()
Reply all
Reply to author
Forward
0 new messages