Answers for "mechanize python XE #29"

0

mechanize python XE #29

def testUserAgent(url, userAgent):
    browser = mechanize.Browser()
    browser.addheaders = userAgent
    page = browser.open(url)
    source_code = page.read()
    print source_code
Posted by: Guest on September-11-2021

Python Answers by Framework

Browse Popular Code Answers by Language