From 2fa2e1da85859c7b84b78fc28acd8960dcf5bd5b Mon Sep 17 00:00:00 2001 From: Eddie Cueto Date: Wed, 5 Jul 2023 16:36:57 +0100 Subject: [PATCH] New scraping file --- scrape.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 scrape.py diff --git a/scrape.py b/scrape.py new file mode 100644 index 0000000..e4b6eb5 --- /dev/null +++ b/scrape.py @@ -0,0 +1,20 @@ +import requests +from bs4 import BeautifulSoup + +date = '2023-07-13' +pitch_4 = '465' +pitch_3 = '466' +pitch_3a = '467' +pitch_3b = '468' + + +url = 'https://portal.sportskey.com/venues/tu-dublin-city-campus/facilities/{}/time_slots?date={}&mp=true'.format(pitch_4,date) +response = requests.get(url) + +soup = BeautifulSoup(response.text, 'html.parser') +print(soup) +#pitch_4 = soup.find_all('div', class_='facility', id='facility_465') + +week = soup.find_all('div',class_=['col', 'p-1']) +print(week[0]) +#print(pitch_4[0].find_all('div',class_=['slots'])) \ No newline at end of file