Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Merge pull request #1582 from starrify/add_doc_textresponse_urljoin

Mikhail Korobov9dd77b42b548
diff --cc docs/topics/request-response.rst
index 42ce22158,ba3d697ef..e0435e901
--- a/docs/topics/request-response.rst
+++ b/docs/topics/request-response.rst
@@@ -941,15 -661,19 +941,23 @@@ TextResponse object
response.css('p')
- .. method:: TextResponse.body_as_unicode()
+ .. automethod:: TextResponse.follow
+
+ .. automethod:: TextResponse.follow_all
+
+ .. automethod:: TextResponse.json()
- The same as :attr:`text`, but available as a method. This method is
- kept for backwards compatibility; please prefer ``response.text``.
+ Returns a Python object from deserialized JSON document.
+ The result is cached after the first call.
+ .. method:: TextResponse.urljoin(url)
+
+ Constructs an absolute url by combining the Response's base url with
+ a possible relative url. The base url shall be extracted from the
+ ``<base>`` tag, or just the Response's :attr:`url` if there is no such
+ tag.
+
+
HtmlResponse objects
--------------------