Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ def find_rss(rss_url):
|
|
11 |
r = requests.get(f'{rss_url}')
|
12 |
soup = bs4.BeautifulSoup(r.content,'lxml')
|
13 |
for i,p in enumerate(soup.find_all("a")):
|
14 |
-
if
|
15 |
print (p['href'])
|
16 |
json_dict[p.text]=p['href']
|
17 |
json_box.append(json_dict)
|
|
|
11 |
r = requests.get(f'{rss_url}')
|
12 |
soup = bs4.BeautifulSoup(r.content,'lxml')
|
13 |
for i,p in enumerate(soup.find_all("a")):
|
14 |
+
if ".xml" in p['href'] or ".json" in p['href']:
|
15 |
print (p['href'])
|
16 |
json_dict[p.text]=p['href']
|
17 |
json_box.append(json_dict)
|