Seite 1 von 1

Cookies zur Cookiejar hinzufügen

Verfasst: Mittwoch 20. Januar 2010, 16:42
von INFACT
Hi,

wie kann ich eigene Cookies zur cookiejar hinzufügen?

Code: Alles auswählen

cj = cookielib.CookieJar()
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))
ich will jetzt zum Beispiel den cookie test=123 für die domain test.de hinzufügen, wie mache ich das?

Verfasst: Mittwoch 20. Januar 2010, 18:45
von tordmor