Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

mechanize python XE #26

def printCookies(url):
    browser = mechanize.Browser()
    cookie_jar = cookielib.LWPCookieJar()
    browser.set_cookiejar(cookie_jar)
    page = browser.open(url)
    for cookie in cookie_jar:
        print cookie 
Source by www.programcreek.com #
 
PREVIOUS NEXT
Tagged: #mechanize #python #XE
ADD COMMENT
Topic
Name
2+6 =