how to get a page's html code via a proxy

Fredrik Lundh fredrik at
Thu Mar 9 15:28:56 CET 2006

"JuHui" wrote:

> who can help me?

did you check the documentation ?  a quick look in the library index
might have helped you find this page

(search for "proxy" on that page to learn how urllib handles proxies)

> please give me a sample code.

    import urllib
    urllib.urlretrieve("someurl", "filename")

hope this helps!


More information about the Python-list mailing list