class documentation

class CookiesMiddleware:

View In Hierarchy

This middleware enables working with sites that need cookies
Class Method from​_crawler Undocumented
Method __init__ Undocumented
Method ​_debug​_cookie Undocumented
Method ​_debug​_set​_cookie Undocumented
Method ​_format​_cookie Given a dict consisting of cookie components, return its string representation. Decode from bytes if necessary.
Method ​_get​_request​_cookies Extract cookies from the Request.cookies attribute
Method process​_request Undocumented
Method process​_response Undocumented
Instance Variable debug Undocumented
Instance Variable jars Undocumented
@classmethod
def from_crawler(cls, crawler):

Undocumented

def __init__(self, debug=False):

Undocumented

def _debug_cookie(self, request, spider):

Undocumented

def _debug_set_cookie(self, response, spider):

Undocumented

def _format_cookie(self, cookie, request):
Given a dict consisting of cookie components, return its string representation. Decode from bytes if necessary.
def _get_request_cookies(self, jar, request):
Extract cookies from the Request.cookies attribute
def process_request(self, request, spider):

Undocumented

def process_response(self, request, response, spider):

Undocumented

debug =

Undocumented

jars =

Undocumented