コード例 #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")