mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-02 09:26:12 +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:
|
||||
data = await get_rss_raw_data(url)
|
||||
return data.feed.title
|
||||
feed = feedparser.parse(data.text)
|
||||
return feed.feed.title
|
||||
|
||||
@Singleton
|
||||
class Rss:
|
||||
|
Loading…
x
Reference in New Issue
Block a user