def request_json_data(scraper, uri):
    """
    A simple helper to return a dict when given the url of a json endpoint
    """
    r = scraper.session.get(uri)
    if r.status_code != 200:
        raise ValueError("Failed to get url '{}' with status code {}.".format(uri, r.status_code))

    return r.json()