import requests


def fetch_preview(preview: dict):
    """Fetches screenshot data. Retuns None if screenshot has no asset."""
    attr = preview["attributes"]
    url = attr["videoUrl"]
    if url is None:
        return None
    else:
        return requests.get(url)