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

Fredrik Lundh fredrik at pythonware.com
Thu Mar 9 09:28:56 EST 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

    http://docs.python.org/lib/module-urllib.html

(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!

</F> 






More information about the Python-list mailing list