import requests


def exec_request(url, timeout):
    """Executes request given in url and returns a dictionary with content"""
    data = requests.get(url, timeout=timeout)
    data.raise_for_status()  # Raise in case of failed status
    return data.json()