def get_event_id(url):
 match = re.search('{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

def get_event_id ( url ) : match = re . search ( '{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 .