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

This commit is contained in:
Pengyu CHEN 2015-11-04 02:29:28 +08:00
parent 0ef570f6f0
commit 114437c169
1 changed files with 8 additions and 0 deletions

View File

@ -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
--------------------