Groups
Groups
Sign in
Groups
Groups
Python GCU Forum
Conversations
About
Send feedback
Help
how to use urllib.urlretrieve to fetch files by proxy
783 views
Skip to first unread message
QQ Ding
unread,
Nov 13, 2014, 1:58:17 AM
11/13/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 PM
2/5/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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()
https://docs.python.org/3.0/library/urllib.request.html
Reply all
Reply to author
Forward
0 new messages