Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -288,9 +288,13 @@ def nasa_sdo_images(obj,size,date1,date2):
|
|
| 288 |
soup = bs4.BeautifulSoup(feed1.content, 'html.parser')
|
| 289 |
#print(soup)
|
| 290 |
anchor_elements = soup.find_all('a')
|
| 291 |
-
anchor_elements.sort(reverse=True)
|
| 292 |
for element in anchor_elements:
|
| 293 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 294 |
if href.endswith('.jpg'):
|
| 295 |
for o in obj:
|
| 296 |
for s in size:
|
|
|
|
| 288 |
soup = bs4.BeautifulSoup(feed1.content, 'html.parser')
|
| 289 |
#print(soup)
|
| 290 |
anchor_elements = soup.find_all('a')
|
|
|
|
| 291 |
for element in anchor_elements:
|
| 292 |
+
link_box.append(element.get('href'))
|
| 293 |
+
|
| 294 |
+
link_box.sort(reverse=True)
|
| 295 |
+
#for element in anchor_elements:
|
| 296 |
+
for href in link_box:
|
| 297 |
+
#href=element.get('href')
|
| 298 |
if href.endswith('.jpg'):
|
| 299 |
for o in obj:
|
| 300 |
for s in size:
|