def get_booking_id(self): "Attempt to extract the booking system id from the link. May be a bit fragile" params = url_utils.get_url_params(self.link) return params['id']
def extract_id(link): if link is None: return None return url_utils.get_url_params(str(link)).get("id")