This script automates the process of posting content from a running Szurubooru-instance to Bluesky. It periodically fetches posts via API, formats them, and posts them to Bluesky with the relevant information.
- Automated Posting: Automatically posts content from Szurubooru to Bluesky.
- Content Formatting: Formats the post with URLs, comments, tags, and user information.
- Scheduled Posting: Posts every 6 hours or skips to the next post if no valid content is found.
- Python 3.6+
requests
library
-
Clone the repository:
git clone https://github.com/ninjazan420/Szurubooru-Bluesky-Bot.git cd Szurubooru-Bluesky-Bot
-
Install dependencies:
pip install requests
-
Update Configuration:
Open the script file
bluesky_bot.py
and replace the placeholders forUSERNAME
andPASSWORD
with your Bluesky credentials. Also change the URLHERE to your actual URL, but do not change /api!
-
Run the script:
python bluesky_bot.py
-
How it works:
- The script logs into Bluesky using your credentials.
- It starts fetching posts from your instance starting from ID 1.
- For each valid post, it formats the content and posts it to Bluesky.
- If a post is not found, it skips to the next ID and retries.
Each post on Bluesky will be formatted as follows: