๐Ÿ“ฆ ftnext / recent-state-summarizer

โ˜… 0 stars โ‘‚ 0 forks ๐Ÿ‘ 0 watching โš–๏ธ MIT License
๐Ÿ“ฅ Clone https://github.com/ftnext/recent-state-summarizer.git
HTTPS git clone https://github.com/ftnext/recent-state-summarizer.git
SSH git clone git@github.com:ftnext/recent-state-summarizer.git
CLI gh repo clone ftnext/recent-state-summarizer
ftnext ftnext chore: Bump up 0.0.9 23473b6 16 hours ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“ .claude
๐Ÿ“ .github
๐Ÿ“ tests
๐Ÿ“„ .gitignore
๐Ÿ“„ CLAUDE.md
๐Ÿ“„ LICENSE
๐Ÿ“„ pyproject.toml
๐Ÿ“„ README.md
๐Ÿ“„ requirements.lock
๐Ÿ“„ setup.py
๐Ÿ“„ README.md

recent-state-summarizer

Summarize blog article titles with the OpenAI API

a.k.a. RSS ๐Ÿ˜ƒ

Setup

$ pip install recent-state-summarizer

โš ๏ธ Set OPENAI_API_KEY environment variable. ref: https://platform.openai.com/account/api-keys

Usage

$ omae-douyo https://nikkie-ftnext.hatenablog.com/archive/2023/4

ใ“ใฎไบบ็‰ฉใฏๆœ€่ฟ‘ใ€ใƒ—ใƒญใ‚ฐใƒฉใƒŸใƒณใ‚ฐใซ้–ขใ™ใ‚‹ใ“ใจใ‚’ไธญๅฟƒใซใ—ใฆๆดปๅ‹•ใ—ใฆใ„ใพใ™ใ€‚

๏ผˆ็•ฅ๏ผ‰

ๆœ€่ฟ‘ใฏใ€ๆ ชๅผไผš็คพใฏใฆใชใซๅ…ฅ็คพใ—ใŸใ‚ˆใ†ใงใ™ใ€‚

Currently support:

  • ใฏใฆใชใƒ–ใƒญใ‚ฐ๏ผˆHatena blog๏ผ‰
  • ใฏใฆใชใƒ–ใƒƒใ‚ฏใƒžใƒผใ‚ฏRSS
  • Adventar
  • Qiita Advent Calendar
To see help, type omae-douyo -h.

Fetch only (save to file)

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

Development

Sub commands

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

Environment

$ 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 '.'