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)
- はてなブックマークRSS
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 '.'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file recent_state_summarizer-0.0.6.tar.gz.
File metadata
- Download URL: recent_state_summarizer-0.0.6.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fee4078a06ac96e7c413015a34ecb8eac2627c5500525a6d21faf7fe1cf30893
|
|
| MD5 |
f784c9fef59c885cbc4ccf2749b2b3ef
|
|
| BLAKE2b-256 |
db201b344b1eb0bf8c05bbe494b910af450740bde32ded058a1628ff89b408c2
|
Provenance
The following attestation bundles were made for recent_state_summarizer-0.0.6.tar.gz:
Publisher:
publish.yml on ftnext/recent-state-summarizer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
recent_state_summarizer-0.0.6.tar.gz -
Subject digest:
fee4078a06ac96e7c413015a34ecb8eac2627c5500525a6d21faf7fe1cf30893 - Sigstore transparency entry: 789586387
- Sigstore integration time:
-
Permalink:
ftnext/recent-state-summarizer@ffcf4ce7b09a55d8c82e5b1af8405d5f1bbe5704 -
Branch / Tag:
refs/tags/v0.0.6 - Owner: https://github.com/ftnext
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ffcf4ce7b09a55d8c82e5b1af8405d5f1bbe5704 -
Trigger Event:
release
-
Statement type:
File details
Details for the file recent_state_summarizer-0.0.6-py3-none-any.whl.
File metadata
- Download URL: recent_state_summarizer-0.0.6-py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5149d576b53248ec7f1cce9052cdc1338b3b62ed66be5296098fde6d8a94011b
|
|
| MD5 |
53739b0de4a608df52750a6b2c259e4f
|
|
| BLAKE2b-256 |
0640b9576a95234b1e5ee298c6bb5b8e0b5b0f4a1c4d9f5f412ee1ba98aba810
|
Provenance
The following attestation bundles were made for recent_state_summarizer-0.0.6-py3-none-any.whl:
Publisher:
publish.yml on ftnext/recent-state-summarizer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
recent_state_summarizer-0.0.6-py3-none-any.whl -
Subject digest:
5149d576b53248ec7f1cce9052cdc1338b3b62ed66be5296098fde6d8a94011b - Sigstore transparency entry: 789586390
- Sigstore integration time:
-
Permalink:
ftnext/recent-state-summarizer@ffcf4ce7b09a55d8c82e5b1af8405d5f1bbe5704 -
Branch / Tag:
refs/tags/v0.0.6 - Owner: https://github.com/ftnext
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ffcf4ce7b09a55d8c82e5b1af8405d5f1bbe5704 -
Trigger Event:
release
-
Statement type: