MCPcopy
hub / github.com/scrapy/scrapy / urljoin

Method urljoin

scrapy/http/response/text.py:103–106  ·  view source on GitHub ↗

Join this Response's url with a possible relative url to form an absolute interpretation of the latter.

(self, url: str)

Source from the content-addressed store, hash-verified

101 return self._cached_ubody
102
103 def urljoin(self, url: str) -> str:
104 """Join this Response's url with a possible relative url to form an
105 absolute interpretation of the latter."""
106 return urljoin(get_base_url(self), url)
107
108 @memoizemethod_noargs
109 def _headers_encoding(self) -> str | None:

Callers 3

parseMethod · 0.45
test_urljoinMethod · 0.45

Calls 1

get_base_urlFunction · 0.90

Tested by 3

parseMethod · 0.36
test_urljoinMethod · 0.36