def is_binary_data(url) -> bool:
    """
    Determine whether the URL is for a page of plain HTML or binary data.
    """
    url = url.lower()

    return (
        url.endswith(".pdf")
        or url.endswith(".png")
        or url.endswith(".jpeg")
        or url.endswith(".jpg")
    )