LXMFy News Bot using RSS and trafilatura to fetch full-text
Project description
news-bot
A LXMFy News Bot for the Reticulum Network. Get your daily RSS full-text feeds with instant news access and optional cryptographic signature verification.
Features
- Instant News: Type
newsto get the latest headlines from default feeds immediately - RSS Feed Subscriptions: Subscribe to any RSS feed with full-text extraction
- Scheduled Updates: Automatic delivery based on your timezone and preferred schedule
- Feed Categories: Pre-configured categories like news, military, cybersecurity, and science
- Admin Commands: Database backup/restore, statistics, and user management
Installation
pip install lxmfy-news-bot
pipx install lxmfy-news-bot
Git:
pipx install git+https://github.com/lxmfy/news-bot.git
The bot will store its data in ~/.local/share/lxmfy-news-bot/
Usage
lxmfy-news-bot
Configuration
The bot supports various environment variables for customization. See .env-example for a complete list of all available configuration options.
Basic Configuration
BOT_NAME: Bot display name (default: "LXMFy News Bot")BOT_ANNOUNCE: Announcement interval in seconds (default: 600)BOT_PREFIX: Command prefix (default: "")BOT_ADMINS: Comma-separated list of admin hashes
Security & Signatures
BOT_SIGNATURE_VERIFICATION_ENABLED: Enable cryptographic signature verification (default: false)BOT_REQUIRE_MESSAGE_SIGNATURES: Reject unsigned messages when verification is enabled (default: false)
Performance & Limits
BOT_RATE_LIMIT: Messages per minute limit (default: 8)BOT_COOLDOWN: Cooldown period in seconds (default: 1)BOT_MAX_WARNINGS: Max warnings before timeout (default: 3)BOT_WARNING_TIMEOUT: Warning timeout in seconds (default: 300)
Storage & Data
DATA_DIR: Data directory path (default: platform-specific)BACKUP_DIR: Backup directory path (default: data/backups)CONFIG_DIR: Configuration directory path (default: newsbot/)FEEDS_CONFIG: Custom feeds YAML file path
Docker
docker run -d \
-v /path/to/data:/app/data \
-v /path/to/backups:/app/backups \
-v /path/to/.reticulum:/root/.reticulum \
-e BOT_NAME="My News Bot" \
-e BOT_ADMINS="admin1hash,admin2hash" \
-e BOT_SIGNATURE_VERIFICATION_ENABLED="true" \
ghcr.io/lxmfy/news-bot:latest
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
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 lxmfy_news_bot-0.7.0.tar.gz.
File metadata
- Download URL: lxmfy_news_bot-0.7.0.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e1b9ed6ca501d8b6f591650bc906de0dd95c588f13a315bfa692547ee42569d
|
|
| MD5 |
8b050b9156b4ca5ae5b6f3882eefd925
|
|
| BLAKE2b-256 |
80b56acc6751983a74b3b9473eeefd8e82abad250b8c1ef651a2716a818e1662
|
Provenance
The following attestation bundles were made for lxmfy_news_bot-0.7.0.tar.gz:
Publisher:
publish.yml on lxmfy/news-bot
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lxmfy_news_bot-0.7.0.tar.gz -
Subject digest:
7e1b9ed6ca501d8b6f591650bc906de0dd95c588f13a315bfa692547ee42569d - Sigstore transparency entry: 699292912
- Sigstore integration time:
-
Permalink:
lxmfy/news-bot@f938b16043d59ac866913513ffa596846a63a673 -
Branch / Tag:
refs/tags/v0.7.0 - Owner: https://github.com/lxmfy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f938b16043d59ac866913513ffa596846a63a673 -
Trigger Event:
push
-
Statement type:
File details
Details for the file lxmfy_news_bot-0.7.0-py3-none-any.whl.
File metadata
- Download URL: lxmfy_news_bot-0.7.0-py3-none-any.whl
- Upload date:
- Size: 14.5 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 |
aed2891a23c3bbe6127e322046af8ac9be753851803c27e3476fd74c8560e962
|
|
| MD5 |
e32717076d08c9f754e0d938473a1c82
|
|
| BLAKE2b-256 |
1c6c20948e557d0b177f6ecd863105c2603ae777570751231d91768e73b65569
|
Provenance
The following attestation bundles were made for lxmfy_news_bot-0.7.0-py3-none-any.whl:
Publisher:
publish.yml on lxmfy/news-bot
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lxmfy_news_bot-0.7.0-py3-none-any.whl -
Subject digest:
aed2891a23c3bbe6127e322046af8ac9be753851803c27e3476fd74c8560e962 - Sigstore transparency entry: 699292914
- Sigstore integration time:
-
Permalink:
lxmfy/news-bot@f938b16043d59ac866913513ffa596846a63a673 -
Branch / Tag:
refs/tags/v0.7.0 - Owner: https://github.com/lxmfy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f938b16043d59ac866913513ffa596846a63a673 -
Trigger Event:
push
-
Statement type: