You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

rss2bsky

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rss2bsky

Crosspost RSS Feed to Bluesky

0.1.4
pipPyPI
Maintainers
1

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, ...)

Keywords

Bluesky

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.