Closed cczhong11 closed 3 years ago
@cczhong11 Hi,我近期在做比较大的改动,目前有的计划如下:
fetch-unread
、fetch-articles
、fetch-starred
几个行为不同的命令行工具,每次都会要完整地从 Inoreader 服务端拉取,有比较大的浪费,按照我的设想准备把下载文章这个过程拆分成两个环节:(1) 拉取文章存储到本地数据库(sqlite/mysql);(2) 从本地数据库导出文章为 markdown/json 等不同格式不知道你有没有别的功能上的建议呢?
@Linusp 我个人的use case是想批量tag文章所以用的api,目前python的输入需要是Article object,所以我就只能在notebook里操作😂 后面估计自己弄一弄。 对于cache到db的想法我觉得还是很不错的,就是需要注意和inoreader的sync,感觉很容易inconsistent
@Linusp 我个人的use case是想批量tag文章所以用的api,目前python的输入需要是Article object,所以我就只能在notebook里操作joy 后面估计自己弄一弄。 对于cache到db的想法我觉得还是很不错的,就是需要注意和inoreader的sync,感觉很容易inconsistent
试试 filter 功能,参考 examples/rules.exmaple.yaml
:
- name: test
folders:
- inbox
fields: ["title", "content"]
filter:
type: include_any # include_any/include_all/exclude
rules:
- 权威认证
- 值得拥有
- 潮牌
- 新款
- 求助
- 招聘
- 免费版
- 包邮
- 天猫
- 淘宝
actions:
- type: mark_as_read
- type: tag
tags: tag1,tag2,tag3
- type: like
- type: star
- type: broadcast
通过 folders
可以指定目录,通过 filter
可以指定过滤匹配的条件,目前只支持文章的标题和正文,后续我也考虑加上对订阅源的匹配,然后 actions
那里可以指定要执行的操作,支持标记为 star/like/broadcast/read
以及其他自定义标签,不过还没支持删除标签。
写好配置文件(假设配置文件为 rules.yaml)后,在命令行执行:
inoreader filter -r rules.yaml
看到了这个example 但我不知道怎么用🤣 谢谢指导!
看到了这个example 但我不知道怎么用rofl 谢谢指导!
嗯,现在文档还很少,之后我会慢慢补充的。
In my use case, I would like to save the config file in another path, so I would like have ability to set customized config file path.