fix campusdish
This commit is contained in:
parent
c42420de1e
commit
6902f09003
1 changed files with 2 additions and 2 deletions
4
app.py
4
app.py
|
@ -136,9 +136,9 @@ def dining_data():
|
|||
data = cache.get("dining")
|
||||
if data: return data
|
||||
|
||||
base = "https://louisville.campusdish.com/LocationsAndMenus/"
|
||||
base = "https://louisville.campusdish.com/LocationsAndMenus/Belknap"
|
||||
locations = dict()
|
||||
for location in re.findall(r':"/LocationsAndMenus/([^",]+)', requests.get(base).text):
|
||||
for location in re.findall(r':"/LocationsAndMenus/Belknap/([^",]+)', requests.get(base).text):
|
||||
locations[location] = dict()
|
||||
soup = BeautifulSoup(requests.get(base+location).text, 'html.parser')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue