mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-04 02:26:11 +08:00
fix rss
This commit is contained in:
parent
144514bbec
commit
5b936e193d
@ -15,7 +15,8 @@ async def get_rss_raw_data(url) -> str:
|
|||||||
|
|
||||||
async def get_rss_info(url) -> str:
|
async def get_rss_info(url) -> str:
|
||||||
data = await get_rss_raw_data(url)
|
data = await get_rss_raw_data(url)
|
||||||
return data.feed.title
|
feed = feedparser.parse(data.text)
|
||||||
|
return feed.feed.title
|
||||||
|
|
||||||
@Singleton
|
@Singleton
|
||||||
class Rss:
|
class Rss:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user