nonebot-bison/tests/platforms/static/rss-top5-old.xml
UKM 9838e25bad
🎈优化RSS推送的内容 (#259)
* 🧪 test(tests): 添加了RSS的单元测试

* 🎈 perf(rss and test): 优化了RSS部分源标题正文重复的问题

部分RSS源(RSSHub的Twitter)存在正文当标题用的情况,导致推送的时候呈现为两段重复的文字,现通过Jaccard相似系数来判断是否需要去重

* Update nonebot_bison/platform/rss.py

Co-authored-by: AzideCupric <57004769+AzideCupric@users.noreply.github.com>

* Update nonebot_bison/platform/rss.py

Co-authored-by: AzideCupric <57004769+AzideCupric@users.noreply.github.com>

* 🐞 fix(platform/rss): 修复了漏掉相似文本在后端位置的问题

* 🐞 fix(rss): 修正一些feed无法正确识别时间的bug

一些feed时间只有updated标签或者没有,原先的代码只能解析用published标签的时间

felinae98#275

* 🎈 perf(rss): 更改字符串相似度比较方法

从Jaccard相似系数比较相似度改为通过最长公共子序列来比较

* 🦄 refactor(rss): 重构实现字符串相似度比较的方法

使用标准库difflib代替原先手搓的LCS

* Update nonebot_bison/utils/__init__.py

Co-authored-by: felinae98 <731499577@qq.com>

* Update nonebot_bison/platform/rss.py

* Update nonebot_bison/platform/rss.py

---------

Co-authored-by: AzideCupric <57004769+AzideCupric@users.noreply.github.com>
Co-authored-by: felinae98 <731499577@qq.com>
2023-07-18 11:54:49 +08:00

57 lines
2.1 KiB
XML
Vendored

<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
<channel>
<title>
<![CDATA[ Hot Wallpapers - wallhaven.cc ]]>
</title>
<link>https://wallhaven.cc/hot</link>
<atom:link href="https://rsshub.app/wallhaven/hot?limit=5" rel="self" type="application/rss+xml"/>
<description>
<![CDATA[ Hot Wallpapers - wallhaven.cc - Made with love by RSSHub(https://github.com/DIYgod/RSSHub) ]]>
</description>
<generator>RSSHub</generator>
<webMaster>i@diygod.me (DIYgod)</webMaster>
<language>zh-cn</language>
<lastBuildDate>Tue, 04 Jul 2023 06:23:09 GMT</lastBuildDate>
<ttl>120</ttl>
<item>
<title>
<![CDATA[ 2y322g.jpg ]]>
</title>
<description>
<![CDATA[ <img alt="loading" class="lazyload" data-src="https://th.wallhaven.cc/small/2y/2y322g.jpg" src="https://th.wallhaven.cc/small/2y/2y322g.jpg" referrerpolicy="no-referrer"> ]]>
</description>
<guid isPermaLink="false">https://wallhaven.cc/w/2y322g</guid>
<link>https://wallhaven.cc/w/2y322g</link>
</item>
<item>
<title>
<![CDATA[ rrj6qw.jpg ]]>
</title>
<description>
<![CDATA[ <img alt="loading" class="lazyload" data-src="https://th.wallhaven.cc/small/rr/rrj6qw.jpg" src="https://th.wallhaven.cc/small/rr/rrj6qw.jpg" referrerpolicy="no-referrer"> ]]>
</description>
<guid isPermaLink="false">https://wallhaven.cc/w/rrj6qw</guid>
<link>https://wallhaven.cc/w/rrj6qw</link>
</item>
<item>
<title>
<![CDATA[ 9drg1d.jpg ]]>
</title>
<description>
<![CDATA[ <img alt="loading" class="lazyload" data-src="https://th.wallhaven.cc/small/9d/9drg1d.jpg" src="https://th.wallhaven.cc/small/9d/9drg1d.jpg" referrerpolicy="no-referrer"> ]]>
</description>
<guid isPermaLink="false">https://wallhaven.cc/w/9drg1d</guid>
<link>https://wallhaven.cc/w/9drg1d</link>
</item>
<item>
<title>
<![CDATA[ vq5eem.jpg ]]>
</title>
<description>
<![CDATA[ <img alt="loading" class="lazyload" data-src="https://th.wallhaven.cc/small/vq/vq5eem.jpg" src="https://th.wallhaven.cc/small/vq/vq5eem.jpg" referrerpolicy="no-referrer"> ]]>
</description>
<guid isPermaLink="false">https://wallhaven.cc/w/vq5eem</guid>
<link>https://wallhaven.cc/w/vq5eem</link>
</item>
</channel>
</rss>