Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,10 +5,12 @@ main_directory = "https://services.swpc.noaa.gov/"
|
|
5 |
def run():
|
6 |
link_box=[]
|
7 |
feed1 = requests.get(main_directory)
|
8 |
-
lines = feed1.text.split("\n")
|
9 |
-
|
10 |
-
|
11 |
-
|
|
|
|
|
12 |
#print(feed1.json.keys())
|
13 |
print("#############")
|
14 |
print(feed1.text)
|
|
|
5 |
def run():
|
6 |
link_box=[]
|
7 |
feed1 = requests.get(main_directory)
|
8 |
+
#lines = feed1.text.split("\n")
|
9 |
+
spl = feed1.split("href=")
|
10 |
+
print(spl)
|
11 |
+
|
12 |
+
for line in spl:
|
13 |
+
link_box.append(line.split(">")[0]))
|
14 |
#print(feed1.json.keys())
|
15 |
print("#############")
|
16 |
print(feed1.text)
|