예제 #1
0
파일: cal_events.py 프로젝트: perrys/WSRC
 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']
예제 #2
0
파일: scrape_page.py 프로젝트: perrys/WSRC
def extract_id(link):
  if link is None:
    return None
  return url_utils.get_url_params(str(link)).get("id")