Skip to content

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

added: Doc for `scrapy.http.TextResponse.urljoin`

Pengyu CHEN114437c1693c
diff --git a/docs/topics/request-response.rst b/docs/topics/request-response.rst
index 75b98d3b3..ba3d697ef 100644
--- a/docs/topics/request-response.rst
+++ b/docs/topics/request-response.rst
@@ -666,6 +666,14 @@ TextResponse objects
The same as :attr:`text`, but available as a method. This method is
kept for backwards compatibility; please prefer ``response.text``.
+ .. 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
--------------------