Azide
efe792ec66
♻️ 精简assert
2023-10-15 23:26:35 +08:00
Azide
77e9fc3b50
🐛 修复一些类型错误
2023-10-15 23:26:35 +08:00
felinae98
e7dcfdee50
✨ 提供批量 api 接口 ( #290 )
...
* 🚧 add batch api
* 🚧 support batch in scheduler
* ✨ use batch api in bilibili-live
✅ patch platform_manager directly
✨ use batch api in bilibili-live
✅ patch platform_manager directly
* ♻️ refactor var name
* 🐛 fix test
* 🐛 fix scheduler
* 🐛 fix test
2023-08-29 21:12:42 +08:00
UKM
cfa91df5e4
🐞 fix(text-similarity): 修复除0报错 ( #302 )
...
* 🐞 fix(text-similarity): 修复除0报错
没有考虑到bilibili的推送出现动态或者视频简介长度为零的情况,出现文本相似度除0Error
* 🧪 test(bilibili): 添加视频动态内容为空的情况的测试
* 🧪 test(text-similarity): 增加文本相似度函数的测试
* Update test_rss.py
* 📃 docs(text_similarity): 添加文本相似度函数的注释
* 🦄 refactor(text_similarity): 重构文本相似度的比较方法
* 🎈 perf(similar_text): 将比较函数的return改成raise
* 🦄 refactor(text_similarity): 重构文本相似度比较方法
* Update nonebot_bison/platform/bilibili.py
Co-authored-by: felinae98 <731499577@qq.com>
* Update nonebot_bison/platform/rss.py
Co-authored-by: felinae98 <731499577@qq.com>
---------
Co-authored-by: felinae98 <731499577@qq.com>
2023-08-27 16:28:26 +08:00
Azide
fc699d80ce
⬆️ 升级dev工具依赖
...
💄 auto fix by pre-commit hooks
2023-07-18 21:43:25 +08:00
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