Skip to main content

Summarize a list of entry titles using LLM

Project description

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)

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

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

Project details


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.5.tar.gz (7.4 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.5-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: recent_state_summarizer-0.0.5.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for recent_state_summarizer-0.0.5.tar.gz
Algorithm Hash digest
SHA256 e172fde0efb9481128538a665768670fccadee536819a0342a9aa362c3f01012
MD5 5a86ea90c92a6fe6bd811e7af82a0462
BLAKE2b-256 effd26871ba534d94a82866a0ea8bc0e60be42ad5d133c447c882f50593134f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for recent_state_summarizer-0.0.5.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.5-py3-none-any.whl.

File metadata

File hashes

Hashes for recent_state_summarizer-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 82f80d83526a0e8040c31550828cb7b30f6075310e29159957bba820648fa7b6
MD5 0e9f093a294e26a73bcf210de373a90f
BLAKE2b-256 81328be2e7636dfb21a472426b08d33ca0bd0f09ce6097eb336e073e12042835

See more details on using hashes here.

Provenance

The following attestation bundles were made for recent_state_summarizer-0.0.5-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