File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,15 +28,21 @@ def parse(evento):
2828
2929def 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
You can’t perform that action at this time.
0 commit comments