import requests


def get_feed_by_url(url):
    """
    This fetches the feed from a given URL
    :param url: A (valid) URL
    :return: DiscoFeed as python object
    """
    try:
        r = requests.get(
            url,
            timeout=5
        )
        return r.json()
    except:
        raise Exception("Could not reach DiscoFeed or received invalid JSON")