import requests


def get_file_content(url, in_bytes=False):
    """Download file on given `url` and returns in bytes or text with `in_bytes`."""
    r = requests.get(url)
    if r.status_code != 200:
        return
    content = r.content
    if in_bytes:
        return content
    return content.decode("utf-8").strip()