Skip to main content

Crosspost RSS Feed to Bluesky

Project description

R2B

RSS TO BLUESKY

Crosspost entries from RSS Feed to Bluesky.

TIP Every Mastodon account has an RSS feed :)


NOTE This project was created specifically for GoToSocial RSS feed format, if you implement support for other feed format please send a PR

Installation

$ pip install rss2bsky

# OR

$ git clone https://github.com/rochacbruno/rss2bsky
$ python -m pip install ./rss2bsky

Configuration

The configuration uses dynaconf so it can be configured by putting variables on settings.toml file or **alternatively exporting to environment variables prefixed with R2B

toml

FEED_URL = "https://YOUR_FEED_URL"
HANDLE = "you.bsky.social"
PASSWORD = "your-app-password"
START_POST_DATE = "Mon, 29 Sep 2024 23:59:59 +0100"

env

R2B_FEED_URL="https://YOUR_FEED_URL"
R2B_HANDLE="you.bsky.social"
R2B_PASSWORD="your-app-password"
R2B_START_POST_DATE="Mon, 29 Sep 2024 23:59:59 +0100"

Usage

Choose one of the options that fits your environment.

$ pip install rss2bsky
$ rss2bsky

Or setting vars directly

R2B_HANDLE=foo.bsky.app R2B_PASSWORD=batata-123 R2B_FEED_URL=https://foo.bar.rss rss2bsky

Alternative usages

# Python module directly
$ python -m rss2bsky
# UVX
$ uvx rss2bsky

Output

Success

starting loop with https://go.rocha.social/@bruno/feed.rss
Processing 20
skipped https://go.rocha.social/@bruno/statuses/01J8N5DZMN7HME5XD1V67Z699Q, already posted
Posting https://go.rocha.social/@bruno/statuses/01J8NJBXSBQ8NFVCB9GHNY0W7C, to bluesky
...

Config error

dynaconf.validator.ValidationError: FEED_URL is required in env main

Auth error

atproto_client.exceptions.UnauthorizedError: Response(success=False, status_code=401, ...)

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

rss2bsky-0.1.1.tar.gz (84.0 kB view details)

Uploaded Source

Built Distribution

rss2bsky-0.1.1-py3-none-any.whl (28.3 kB view details)

Uploaded Python 3

File details

Details for the file rss2bsky-0.1.1.tar.gz.

File metadata

  • Download URL: rss2bsky-0.1.1.tar.gz
  • Upload date:
  • Size: 84.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for rss2bsky-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9f4978b93e549066f33320a1007cf7666d00143ad03d60525c374e080dcf0098
MD5 3d743f071266d1ff9c8e75f48f60c4eb
BLAKE2b-256 4a9fdc4e67531f6db7ba8bf7ed5c4c84257678a113bdce6c9b52b548d09f64c6

See more details on using hashes here.

File details

Details for the file rss2bsky-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: rss2bsky-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 28.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for rss2bsky-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6f625fbebe0d3e395dee025b488e6c665c2aaf760f8384200e2dfe5fac7e38f0
MD5 c061986716de065016cd9f9932a741e7
BLAKE2b-256 e5a2dc434410d7ba08a1b696bbe346e5dc1491e0f8f5f26bc0e215e0513b3f33

See more details on using hashes here.

Supported by

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