https://github.com/ftnext/recent-state-summarizer.git
Summarize blog article titles with the OpenAI API
a.k.a. RSS ๐
$ pip install recent-state-summarizer
โ ๏ธ Set OPENAI_API_KEY environment variable.
ref: https://platform.openai.com/account/api-keys
$ omae-douyo https://nikkie-ftnext.hatenablog.com/archive/2023/4
ใใฎไบบ็ฉใฏๆ่ฟใใใญใฐใฉใใณใฐใซ้ขใใใใจใไธญๅฟใซใใฆๆดปๅใใฆใใพใใ
๏ผ็ฅ๏ผ
ๆ่ฟใฏใๆ ชๅผไผ็คพใฏใฆใชใซๅ
ฅ็คพใใใใใงใใ
Currently support:
omae-douyo -h.
Fetch titles and URLs of articles, and save them to a file without summarization:
# Save as JSON format (default)
$ omae-douyo fetch https://nikkie-ftnext.hatenablog.com/archive/2023/4 articles.jsonl
# Save as bullet list
$ omae-douyo fetch https://nikkie-ftnext.hatenablog.com/archive/2023/4 titles.txt --as-title-list
Fetch only (same as omae-douyo fetch):
python -m recent_state_summarizer.fetch -h
Summarize only: It's convenient to omit fetching in tuning the prompt.
python -m recent_state_summarizer.summarize -h
$ git clone https://github.com/ftnext/recent-state-summarizer.git
$ cd recent-state-summarizer
$ python -m venv venv
$ source venv/bin/activate
(venv) $ pip install -r requirements.lock
(venv) $ pip install -e '.'