Skip to content

Commit 1efaece

Browse files
committed
feat: add new songkick venue url for estadio mas monumental to catch all concerts
1 parent 00ecb0f commit 1efaece

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

conciertos.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,21 @@ def parse(evento):
2828

2929
def fetch_conciertos():
3030
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)'}
31-
res = requests.get("https://www.songkick.com/venues/4514007-estadio-river-plate/calendar", headers=headers)
32-
soup = BeautifulSoup(res.text, "html.parser")
31+
urls = [
32+
"https://www.songkick.com/venues/4514007-estadio-river-plate/calendar",
33+
"https://www.songkick.com/venues/47008-estadio-mas-monumental-antonio-vespucio-liberti/calendar"
34+
]
3335

3436
conciertos = []
3537

36-
for el in soup.select(".microformat"):
37-
concierto = Concierto.parse(el)
38-
if concierto:
39-
conciertos.append(concierto)
38+
for url in urls:
39+
res = requests.get(url, headers=headers)
40+
soup = BeautifulSoup(res.text, "html.parser")
41+
42+
for el in soup.select(".microformat"):
43+
concierto = Concierto.parse(el)
44+
if concierto:
45+
conciertos.append(concierto)
4046

4147
return conciertos
4248

0 commit comments

Comments
 (0)