"""Download a website."""
import mechanize


def testProxy(url, proxy):
    browser = mechanize.Browser()
    browser.set_handle_robots(False)
    browser.set_proxies(proxy)
    page = browser.open(url)
    source_code = page.read()
    print(source_code)


url = 'http://ip.nefsc.noaa.gov/'
hideMeProxy = {'http': '216.155.139.115:3128'}

testProxy(url, hideMeProxy)
