Answers for "mechanize python XE #26"

0

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
Posted by: Guest on September-11-2021

Python Answers by Framework

Browse Popular Code Answers by Language