Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,61 @@ main_directory = "https://services.swpc.noaa.gov/"
|
|
| 14 |
sdo_source = "https://sdo.gsfc.nasa.gov/assets/img/browse/"
|
| 15 |
sdo_source_format = "https://sdo.gsfc.nasa.gov/assets/img/browse/YEAR/MONTH/DAY/DATE_IDENT_SIZE_TOOL.jpg"
|
| 16 |
|
| 17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
def load_json(url1="",url2="",url3="",url4="",url5="",url6="",url7="",url8=""):
|
| 19 |
get_url=f'{main_directory}{url1}{url2}{url3}{url4}{url5}{url6}{url7}{url8}'
|
| 20 |
print(f'{get_url}')
|
|
|
|
| 14 |
sdo_source = "https://sdo.gsfc.nasa.gov/assets/img/browse/"
|
| 15 |
sdo_source_format = "https://sdo.gsfc.nasa.gov/assets/img/browse/YEAR/MONTH/DAY/DATE_IDENT_SIZE_TOOL.jpg"
|
| 16 |
|
| 17 |
+
html = """
|
| 18 |
+
<div>
|
| 19 |
+
PAGE_LINK
|
| 20 |
+
</div>
|
| 21 |
+
"""
|
| 22 |
+
css="""
|
| 23 |
+
.img_box{
|
| 24 |
+
display: flex;
|
| 25 |
+
flex-direction: column;
|
| 26 |
+
flex-flow: unset;
|
| 27 |
+
flex-wrap: wrap;
|
| 28 |
+
justify-content: space-around;
|
| 29 |
+
}
|
| 30 |
+
.img_class{
|
| 31 |
+
background: #ffffff;
|
| 32 |
+
max-width: 48%;
|
| 33 |
+
font-family: monospace;
|
| 34 |
+
border-top: #9300ff;
|
| 35 |
+
border-style: inset;
|
| 36 |
+
margin-top: 5px;
|
| 37 |
+
}
|
| 38 |
+
.img_class_raw{
|
| 39 |
+
background: #ffffff;
|
| 40 |
+
width: 100%;
|
| 41 |
+
font-family: monospace;
|
| 42 |
+
border-top: #9300ff;
|
| 43 |
+
border-style: inset;
|
| 44 |
+
margin-top: 5px;
|
| 45 |
+
display:flex;
|
| 46 |
+
flex-direction:column;
|
| 47 |
+
}
|
| 48 |
+
.img_box_soho{
|
| 49 |
+
display: flex;
|
| 50 |
+
flex-direction: row;
|
| 51 |
+
flex-wrap: wrap;
|
| 52 |
+
justify-content: space-between;
|
| 53 |
+
}
|
| 54 |
+
.img_class_soho{
|
| 55 |
+
background: #ffffff;
|
| 56 |
+
font-family: monospace;
|
| 57 |
+
border-top: #9300ff;
|
| 58 |
+
border-style: inset;
|
| 59 |
+
margin-top: 5px;
|
| 60 |
+
max-width: 48%;
|
| 61 |
+
}
|
| 62 |
+
.img_class_sdo{
|
| 63 |
+
background: #ffffff;
|
| 64 |
+
font-family: monospace;
|
| 65 |
+
border-top: #9300ff;
|
| 66 |
+
border-style: inset;
|
| 67 |
+
margin-top: 5px;
|
| 68 |
+
max-width: 25%;
|
| 69 |
+
font-size: small;
|
| 70 |
+
}
|
| 71 |
+
"""
|
| 72 |
def load_json(url1="",url2="",url3="",url4="",url5="",url6="",url7="",url8=""):
|
| 73 |
get_url=f'{main_directory}{url1}{url2}{url3}{url4}{url5}{url6}{url7}{url8}'
|
| 74 |
print(f'{get_url}')
|