Skip to main content

rsskey

rsskey is a simple script for mirroring RSS or Atom feeds on Misskey. It splits original posts into paragraphs or sentences to fit an instance's character limit and checks for previous notes before creating.

Installation

rsskey depends on feedparser, httpx, loca, markdownify and trio. If you pip install rsskey, pip will install all the dependencies for you to run python -m rsskey.

Alternatively, you can get the requirements from your distribution, fetch the source tree and execute src/rsskey.py.

Usage

In rsskey's user configuration directory, declare the mirroring jobs in jobs.conf, for example:

[rms@birb.space]
; URL to RSS/Atom feed source
source = https://stallman.org/rss/rss.xml
; URL to destination Misskey instance's API
dest = https://birb.space/api
; Note character limit of the Misskey instance
text = 420
; Content warning character limit of the Misskey instance
cw = 69
; Misskey user ID for searching previous notes
user = 8rt4sahf1j
; Access token with permission to compose notes
token = 7h4753cur3r4nd0m57r1n61764v3y0u

In order to run rsskey chronically, set up a cron job or something IDK.

Contributing

Patches should be sent to ~cnx/misc@lists.sr.ht using git send-email with the following configurations:

git config sendemail.to '~cnx/misc@lists.sr.ht'
git config format.subjectPrefix 'PATCH rsskey'

Copying

AGPLv3

rsskey is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Metadata

Release files for rsskey 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rsskey 0.2.0
File Size Uploaded
rsskey-0.2.0.tar.gz 15.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rsskey 0.2.0
File Interpreter ABI Platform
rsskey-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 30.9 kB

Release files / rsskey-0.2.0.tar.gz

Download URL rsskey-0.2.0.tar.gz
Size 15.1 kB
Tags Source
SHA-256 checksum
How to use checksums
41e74bbb0774112d8b5a167bd828e1dfe659ec76d1c8db322cdf653456d8e5d4
BLAKE2b-256 checksum
How to use checksums
ca3941d27f818649983515b13e983ef3755bca3e89c626edbf73666f08883497
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.28.1

Release files / rsskey-0.2.0-py3-none-any.whl

Download URL rsskey-0.2.0-py3-none-any.whl
Size 15.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
56e725f5700e7948051f1c8dd98fbdac8bff8237043800131cd985d8cd59be3b
BLAKE2b-256 checksum
How to use checksums
4cc921ce4dc220df9134ada55dca06467ccf981931f8e2b3bc560b55e6ef2cef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.28.1

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page