Merge pull request #1582 from starrify/add_doc_textresponse_urljoin

added: Doc for `scrapy.http.TextResponse.urljoin`
This commit is contained in:
Mikhail Korobov 2022-01-23 21:40:21 +05:00 committed by GitHub
commit 9dd77b42b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -950,6 +950,14 @@ TextResponse objects
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
--------------------