Would you like to share your Bluesky posts on other social networks without having to do it manually?
So I have good news for you! Linus Svensson, a talented developer, has created a Python script that will make your life easier by automating all of this!
Done, copy and paste your posts from one platform to another… this script will monitor your Bluesky account and automatically republish your messages on Mastodon and Twitter (well, X… but hey, we understand each other). The coolest thing is that it intelligently manages the specificities of each platform.
The application offers complete and intuitive management of your content through different interconnected functionalities. Your photos are automatically transferred while preserving their alternative descriptions, while discussion threads are meticulously reconstructed to keep conversations consistent.
The system also allows you to cite other publications while maintaining a link to the original content, while respecting a limitation on the number of hourly posts to avoid any quota being exceeded. Deletions are also synced within an hour of posting, ensuring your online presence remains consistent across all platforms.
For a personalized experience, Bluesky’s language filtering feature also allows you to precisely select which posts to share, complemented by support for the platform’s new video features. Finally, mention management options give you full control over interactions involving other users, allowing you to manage or ignore them according to your preferences.
Here’s how to set up this little tool, but first, make sure you have Python installed on your machine. Then run the following commands to retrieve the code:
git clone https://github.com/Linus2punkt0/bluesky-crossposter.gitcd bluesky-crossposter
We will now move on to configuring access:
- Create a file
settings/auth.py
with your identifiers - Enter your API keys for each platform
- Configure the paths in
settings/path.py
And for the settings, it’s in settings/settings.py
that it happens and that you can:
- Enable/disable each platform
- Configure time limit for old posts
- Enable/disable cross deletion
- Set the maximum number of posts per hour
Finally, to automate all of this, create a cron task that will run it every 5-10 minutes:
*/5 * * * * cd /chemin/vers/script && python3 main.py
And if you prefer to use Docker, a Dockerfile and a docker-compose file are also provided.
Of course, start gradually by testing with one social network first before activating the others. Think about monitor the logs as they will help you spot possible issues and remember that Twitter/X has strict restrictions depending on your API level.
Finally, remember to archive old logs to avoid clogging up your disk
Also note that all replies and reposts are not shared (this is intentional!) and that certain features require a paid Twitter API. Sniff…
A big thank you to Letsar for sharing this find!
Source link
Subscribe to our email newsletter to get the latest posts delivered right to your email.
Comments