class Response(object_ref): (source)
Known subclasses: scrapy.http.response.text.TextResponse
An object that represents an HTTP response, which is usually downloaded (by the Downloader) and fed to the Spiders for processing.
Method | __init__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | copy |
Return a copy of this Response |
Method | css |
Shortcut method implemented only by responses whose content is text (subclasses of TextResponse). |
Method | follow |
Return a :class:`~.Request` instance to follow a link ``url``. It accepts the same arguments as ``Request.__init__`` method, but ``url`` can be a relative URL or a ``scrapy.link.Link`` object, not only an absolute URL. |
Method | follow |
.. versionadded:: 2.0 |
Method | replace |
Create a new Response with the same attributes except for those given new values |
Method | urljoin |
Join this Response's url with a possible relative url to form an absolute interpretation of the latter. |
Method | xpath |
Shortcut method implemented only by responses whose content is text (subclasses of TextResponse). |
Class Variable | attributes |
A tuple of :class:`str` objects containing the name of all public attributes of the class that are also keyword parameters of the ``__init__`` method. |
Class Variable | body |
Undocumented |
Class Variable | url |
Undocumented |
Instance Variable | certificate |
Undocumented |
Instance Variable | flags |
Undocumented |
Instance Variable | headers |
Undocumented |
Instance Variable | ip |
Undocumented |
Instance Variable | protocol |
Undocumented |
Instance Variable | request |
Undocumented |
Instance Variable | status |
Undocumented |
Property | cb |
Undocumented |
Property | meta |
Undocumented |
Property | text |
For subclasses of TextResponse, this will return the body as str |
Method | _get |
Undocumented |
Method | _get |
Undocumented |
Method | _set |
Undocumented |
Method | _set |
Undocumented |
Instance Variable | _body |
Undocumented |
Instance Variable | _url |
Undocumented |
Inherited from object_ref
:
Method | __new__ |
Undocumented |
Class Variable | __slots__ |
Undocumented |
str
, status=200, headers=None, body=b'', flags=None, request=None, certificate=None, ip_address=None, protocol=None):
(source)
¶
scrapy.http.response.text.TextResponse
Undocumented
scrapy.http.response.text.TextResponse
Shortcut method implemented only by responses whose content is text (subclasses of TextResponse).
Request
:
(source)
¶
scrapy.http.response.text.TextResponse
Return a :class:`~.Request` instance to follow a link ``url``. It accepts the same arguments as ``Request.__init__`` method, but ``url`` can be a relative URL or a ``scrapy.link.Link`` object, not only an absolute URL. :class:`~.TextResponse` provides a :meth:`~.TextResponse.follow` method which supports selectors in addition to absolute/relative URLs and Link objects. .. versionadded:: 2.0 The *flags* parameter.
Generator[ Request, None, None]
:
(source)
¶
scrapy.http.response.text.TextResponse
.. versionadded:: 2.0 Return an iterable of :class:`~.Request` instances to follow all links in ``urls``. It accepts the same arguments as ``Request.__init__`` method, but elements of ``urls`` can be relative URLs or :class:`~scrapy.link.Link` objects, not only absolute URLs. :class:`~.TextResponse` provides a :meth:`~.TextResponse.follow_all` method which supports selectors in addition to absolute/relative URLs and Link objects.
scrapy.http.response.text.TextResponse
Join this Response's url with a possible relative url to form an absolute interpretation of the latter.
scrapy.http.response.text.TextResponse
Shortcut method implemented only by responses whose content is text (subclasses of TextResponse).
scrapy.http.response.text.TextResponse
A tuple of :class:`str` objects containing the name of all public attributes of the class that are also keyword parameters of the ``__init__`` method. Currently used by :meth:`Response.replace`.
scrapy.http.response.text.TextResponse
For subclasses of TextResponse, this will return the body as str