Adition of functions and qury for other pitches
This commit is contained in:
parent
d1090025b5
commit
8754bfabc6
|
@ -39,6 +39,11 @@ def getDaySubLists(week_list: list, day_dict: dict, current_day: int):
|
|||
|
||||
|
||||
date = '2023-07-06'
|
||||
half_pitch_2 = '671'
|
||||
full_pitch = '672'
|
||||
half_pitch_1 = '670'
|
||||
sports_hall = '653'
|
||||
aw_match_full_pitch = '669'
|
||||
pitch_4 = '465'
|
||||
pitch_3 = '466'
|
||||
pitch_3a = '467'
|
||||
|
@ -50,6 +55,7 @@ day_dict = {0: 'Mon', 1: 'Tue', 2: 'Wed', 3: 'Thu', 4: 'Fri', 5: 'Sat', 6: 'Sun'
|
|||
week_day = day_dict[int_week_day]
|
||||
|
||||
url = 'https://portal.sportskey.com/venues/tu-dublin-city-campus/facilities/{}/time_slots?date={}&mp=true'.format(pitch_4,date)
|
||||
url_bla = 'https://portal.sportskey.com/venues/tu-dublin-blanchardstown-campus-sports/facilities/671/time_slots?date=2023-07-10&mp=true'
|
||||
response = requests.get(url)
|
||||
|
||||
soup = BeautifulSoup(response.text, 'html.parser')
|
||||
|
@ -62,4 +68,4 @@ test = getDaySubLists(text_split, day_dict, int_week_day)
|
|||
#pitch_4 = soup.find_all('div', class_='facility', id='facility_465')
|
||||
#week = soup.find_all('div',class_=['col', 'p-1', week_day])
|
||||
#print(week[0])
|
||||
#print(pitch_4[0].find_all('div',class_=['slots']))
|
||||
#print(pitch_4[0].find_all('div',class_=['slots']))
|
||||
|
|
Loading…
Reference in New Issue