跳转到主要内容

可编程的RSS阅读器

项目描述

feed2exec 是一个简单的程序,可以在新的RSS源条目上运行自定义操作(或feedparser 可以读取的任何内容)。它目前支持将条目写入邮箱(Maildir 文件夹)或执行命令,但可以通过插件轻松实现更多操作。电子邮件以多部分纯文本/HTML保存,并可以发送到任意文件夹。

AGPLv3 licensed pipeline status coverage report feed2exec version on PyPI feed2exec version in stable feed2exec version in unstable Say thanks to the author

示例

无副作用简单运行

feed2exec parse https://www.nasa.gov/rss/dyn/breaking_news.rss --output echo --args '{item.title}'

将源条目保存到Maildir文件夹

feed2exec add "NASA breaking news" https://www.nasa.gov/rss/dyn/breaking_news.rss --folder nasa
feed2exec fetch

这将在~/.config/feed2exec.ini 中创建等效的配置文件

[DEFAULT]
output = feed2exec.plugins.maildir
mailbox = ~/Maildir

[NASA breaking news]
folder = nasa
url = https://www.nasa.gov/rss/dyn/breaking_news.rss

将新的源条目发送到Transmission

feed2exec add "Example torrent list" http://example.com/torrents/feed --output transmission --folder /srv/incoming

使用toot 命令行客户端将新的源条目发送到Mastodon

feed2exec add "My site" http://example.com/blog/feed --output exec --args 'toot post "{item.title} {item.link}"'

使用来自python-twitter 的tweet命令行客户端将新的源条目发送到Twitter

feed2exec add "My site on twitter" http://example.com/blog/feed --output exec --args 'tweet "{item.title:.40s} {item.link:.100s}"'

显示源内容

feed2exec add "NASA breaking news" https://www.nasa.gov/rss/dyn/breaking_news.rss --output echo --args "{item.title} {item.link}"
feed2exec fetch

还可以使用OPML导入命令添加多个源。有关更多信息,包括已知问题和限制,请参阅使用文档

安装

可以使用常规Python程序安装

pip install feed2exec

也可以从源安装,使用

pip install .

也可以直接从源运行,使用

python -m feed2exec

该程序也可能作为您 Linux 发行版的官方包提供。

源代码、文档问题 都可在 GitLab 上找到。

为什么叫这个名字?

已经有 feed2tweetfeed2imap 了,所以我决定重用前缀,并一次性扩展这两个程序。

设计信息

有关程序如何以及为何被构建的更多信息,请参阅 设计文档。该文档还包含与其他类似软件的比较。

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解更多关于 安装包 的信息。

源代码分发

此版本没有可用的源代码分发文件。请参阅 生成分发存档的教程

构建分发

feed2exec-0.20.0-py3-none-any.whl (682.9 kB 查看哈希值)

上传时间 Python 3

支持者

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面