📜  mechanize python XE #28 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:50.329000             🧑  作者: Mango

代码示例1
def testProxy(url, proxy):
    browser = mechanize.Browser()
    browser.set_proxies(proxy)
    page = browser.open(url)
    source_code = page.read()
    print source_code