def find_base_url(content: str) -> None | str:
    """Find value of attribute "url" in "<base>" tag."""
    match = RE_BASE_URL.search(html.unescape(content))
    if match:
        return match.group(1)
    return None
Find value of attribute "url" in "<base>" tag.
grab/util/html.py