Skip to main content

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

GitHub Changelog

The github-blog sub-command fetches the GitHub Changelog without specifying its feed URL:

$ omae-douyo fetch github-blog articles.jsonl

# Change the period to fetch entries from (default: 30 days)
$ omae-douyo fetch github-blog articles.jsonl --days 45

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

recent_state_summarizer-0.0.15.tar.gz (20.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

recent_state_summarizer-0.0.15-py3-none-any.whl (31.2 kB view details)

Uploaded Python 3

File details

Details for the file recent_state_summarizer-0.0.15.tar.gz.

File metadata

  • Download URL: recent_state_summarizer-0.0.15.tar.gz
  • Upload date:
  • Size: 20.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for recent_state_summarizer-0.0.15.tar.gz
Algorithm Hash digest
SHA256 f6cf8dd849b89fb223e870df3d1ad643938975b0a0b2c1455f28c4e487a90d86
MD5 ff48babb48554b8a3acc25254a35e5a2
BLAKE2b-256 4cbb5e88f3ee81ed76a59d2d0c69cc846fd25de6dfe85788a8d1708291cff453

See more details on using hashes here.

Provenance

The following attestation bundles were made for recent_state_summarizer-0.0.15.tar.gz:

Publisher: publish.yml on ftnext/recent-state-summarizer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file recent_state_summarizer-0.0.15-py3-none-any.whl.

File metadata

File hashes

Hashes for recent_state_summarizer-0.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 ea4c9ba21f57976ff678fc30d82463536665538f069beec5c01b7dedb2b8677c
MD5 15c16a58569470bf85d2513296650ee1
BLAKE2b-256 3110d1285a3124bf2f68943fe90e3ce4e6de184de50bb200a2735c38e82907b7

See more details on using hashes here.

Provenance

The following attestation bundles were made for recent_state_summarizer-0.0.15-py3-none-any.whl:

Publisher: publish.yml on ftnext/recent-state-summarizer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page