Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,15 +1,14 @@
|
|
1 |
import gradio as gr
|
2 |
import requests
|
3 |
import xmltodict
|
|
|
4 |
import json
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
def get_rss(rss_url):
|
10 |
-
|
11 |
r = requests.get(f'{rss_url}')
|
12 |
-
|
13 |
if ".json" in rss_url:
|
14 |
lod = json.loads(r.text)
|
15 |
if ".xml" in rss_url:
|
|
|
1 |
import gradio as gr
|
2 |
import requests
|
3 |
import xmltodict
|
4 |
+
import bs4
|
5 |
import json
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
def get_rss(rss_url):
|
|
|
11 |
r = requests.get(f'{rss_url}')
|
|
|
12 |
if ".json" in rss_url:
|
13 |
lod = json.loads(r.text)
|
14 |
if ".xml" in rss_url:
|