def get_event_id(url):
    """Extract event id from talk html page.

    Raises :exc:`PluginError` on failure.

    :param url: talk URL

    """
    match = re.search(r"{event_id:\s(?P<event_id>\d+),.*}", http.get(url).text)

    try:
        event_id = int(match.group('event_id'))
    except:
        raise PluginError("Failed to get event id from URL.")

    return event_id
Extract event id from talk html page.

    Raises :exc:`PluginError` on failure.

    :param url: talk URL

    
src/livestreamer/plugins/media_ccc_de.py