def opengraph_get(html, prop):
    match = re.search('<meta [^>]*property="og:' + prop + '" content="([^"]*)"', html)
    if match is None:
        match = re.search('<meta [^>]*content="([^"]*)" property="og:' + prop + '"', html)
        if match is None:
            return None
    return match.group(1)
Extract specified OpenGraph property from html.
dataset/ETHPy150Open spaam/svtplay-dl/lib/svtplay_dl/service/__init__.py/opengraph_get