# Enable or disable downloader middlewares# See https://doc.scrapy.org/en/latest/topics/downloader-middleware.html
DOWNLOADER_MIDDLEWARES ={'testproject.middlewares.ProxyMiddleware':543,}
class scrapy.http.Request() url (string)– the URL of this request callback (callable) – the function that will be called with the response of this request (once its downloaded) as its first parameter. For more information see Passing additional data to callback functions below. If a Request doesn’t specify a callback, the spider’s parse() method will be used. Note that if exceptions are raised during processing, errback is called instead. method (string)– the HTTP method of this request. Defaults to ‘GET’. meta (dict) – the initial values for the Request.meta attribute. If given, the dict passed in this parameter will be shallow copied. body (str or unicode) – the request body. If a unicode is passed, then it’s encoded to str using the encoding passed (which defaults to utf-8). If body is not given, an empty string is stored. Regardless of the type of this argument, the final value stored will be a str (never unicode or None). headers (dict) – the headers of this request. The dict values can be strings (for single valued headers) or lists (for multi-valued headers). If None is passed as value, the HTTP header will not be sent at all. cookies (dict or list) –the request cookies. These can be sent in two forms.
class scrapy.http.Response() url (string) – the URL of this response headers (dict) – the headers of this response. The dict values can be strings (for single valued headers) or lists (for multi-valued headers). status (integer) – the HTTP status of the response. Defaults to 200. body (str) – the response body. It must be str, not unicode, unless you’re using a encoding-aware Response subclass, such as TextResponse. meta (dict)– the initial values for the Response.meta attribute. If given, the dict will be shallow copied. flags (list) – is a list containing the initial values for the Response.flags attribute. If given, the list will be shallow copied.