Published On: 2020-11-06|Last Updated: 2020-11-06|Categories: Programming, Python|

rss2email==3.12.2 だとエラーが発生するため、feedparser==5.2.1 をインストールする必要がある。

mkdir r2e
cd r2e/
pipenv install
pipenv install rss2email feedparser==5.2.1

pipenv run r2e new user@example.com
pipenv run r2e opmlimport exported_feeds.opml
pipenv run r2e run --no-send

OPML のインポートは、一つでもエラーがあるとファイルの読み込み全体が失敗となる。

$ pipenv shell
$ python --version
Python 3.7.1
$ pipenv run pip freeze
feedparser==5.2.1
html2text==2020.1.16
rss2email==3.12.2
sgmllib3k==1.0.0

crontab から呼ぶときは次のように指定する。

@hourly cd /path/to/pipenv/r2e && pipenv run r2e run

関連