Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -254,7 +254,7 @@ def nasa_sdo_images():
|
|
254 |
anchor_elements = soup.find_all('a')
|
255 |
for element in anchor_elements:
|
256 |
href=element.get('href')
|
257 |
-
if href.endswith('.jpg
|
258 |
ls=href.split()
|
259 |
link_json={'year':ls[0][0:3],'month':ls[0][4:5],'day':ls[0][6:7],'dump':ls[1],'size':ls[2],'obj':ls[3].split('.jpg')[0]}
|
260 |
#print(href)
|
|
|
254 |
anchor_elements = soup.find_all('a')
|
255 |
for element in anchor_elements:
|
256 |
href=element.get('href')
|
257 |
+
if href.endswith('.jpg'):
|
258 |
ls=href.split()
|
259 |
link_json={'year':ls[0][0:3],'month':ls[0][4:5],'day':ls[0][6:7],'dump':ls[1],'size':ls[2],'obj':ls[3].split('.jpg')[0]}
|
260 |
#print(href)
|