(response: "scrapy.http.response.text.TextResponse")
return _baseurl_cache[response]
Return the base url of the given response, joined with the response url
Return the base url of the given response, joined with the response url
Return the base url of the given response joined with the response url
def get_base_url(response: "scrapy.http.response.text.TextResponse") -> str:
    """Return the base url of the given response, joined with the response url"""
    if response not in _baseurl_cache:
        text = response.text[0:4096]
        _baseurl_cache[response] = html.get_base_url(text, response.url, response.encoding)
    return _baseurl_cache[response]
def get_base_url ( response : "scrapy.http.response.text.TextResponse" ) -> str : if response not in _baseurl_cache : text = response . text [ 0 : 4096 ] _baseurl_cache [ response ] = html . get_base_url ( text , response . url , response . encoding ) return _baseurl_cache [ response ]