cookielib
The cookielib module provides client-side support for managing HTTP cookies. The primary use of this module is in conjunction with the urllib2 module, which is used to access documents on the Internet. For instance, the cookielib module can be used to capture cookies and to retransmit them on subsequent connection requests. It can also be used to work with files containing cookie data such as files created by various browsers.
CookieJar([policy])
Creates a new CookieJar instance that is responsible for holding HTTP cookie values, storing cookies received as a result of HTTP requests, and adding cookies to outgoing HTTP requests. policy is an instance of CookiePolicy. The purpose of policy is to define various handling rules regarding ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access