import requests


def download(href: str) -> bytes:
    """Get the content of a link.

    :param href: URL to download.
    :returns: contents of the file as bytes on success.
        Empty bytes on failure.
    """
    response = requests.get(href)
    return response.content if response.ok else b""