scrapy.response

https://doc.scrapy.org/en/latest/topics/request-response.html#response-objects

url?(string) 所请求的url the URL of this response
status?(integer) 请求的状态,200,404 the HTTP status of the response. Defaults to?200.
headers?(dict) 返回的头 the headers of this response. The dict values can be strings (for single valued headers) or lists (for multi-valued headers).
body?(bytes) 响应内容的字节对象 the response body. To access the decoded text as str (unicode in Python 2) you can use?response.text?from an encoding-aware?Response subclass, such as?TextResponse.
flags?(list) is a list containing the initial values for the?Response.flags?attribute. If given, the list will be shallow copied.
request?(Request?object) request对象,可以使用里面的参数 the initial value of the?Response.request?attribute. This represents the?Request?that generated this response.

你可能感兴趣的:(爬虫)