Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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 
Source by www.programcreek.com #
 
PREVIOUS NEXT
Tagged: #mechanize #python #XE
ADD COMMENT
Topic
Name
6+2 =