Sync Bookmarks from Mastodon to Shaari

posted on 2023-05-01

mastodon-shaarli-sync

This piece of code lets you sync your Mastodon bookmarks with your Shaarli bookmarks. The script looks for urls in your bookmarked toots and saves them as a Shaarli bookmark. Removing the bookmark from Shaarli (or removing the sync-tag) will remove the bookmark form the original toot as well, so your Mastodon bookmarks always stay in sync with Shaarli.

Installation

git clone https://github.com/Kudusch/mastodon-shaarli-sync
cd mastodon-shaarli-sync/
python3 -m virtualenv venv
source venv/bin/activate
pip install -r requirements.txt

You'll have to edit the example_config.ini, add your Mastodon and Shaarli credentials and rename it to config.ini.

The script does not detect changes in your Mastodon bookmarks, so you'll have to run the script in regular intervals. You can achieve that with cron like so:

crontab -e

*/5 * * * * [installation_path]/mastodon-shaarli-sync/venv/bin/python3 [installation_path]/mastodon-shaarli-sync/main.py >> [installation_path]/mastodon-shaarli-sync/log.txt

Features

  • Sync Mastodon bookmarks with Shaarli bookmarks
  • Look for urls in bookmarked toots and save them individually to Shaarli
  • Bookmarks stay in sync: Removing a bookmark from a toot removes the bookmark from Shaarli and vice versa
  • Want to keep the Shaarli bookmark but not clutter your Mastodon bookmarks? Just remove the mastodon-bookmark tag from the Shaarli bookmark. This will remove the Mastodon bookmark but not delete the Shaarli link
  • Saves the link to the toot in the Shaarli bookmark

Example Bookmark


Measuring Trends in the Fediverse

posted on 2023-01-26

Trends (e.g. twitter's trending topics) are an affordance of social media platforms that enable users to discover content and connect with other users. They are also being used by e.g. journalist and politicians to gage topics the general public is interested in (which is a huge attack-vector for Dark Participation and propagandistic communication).

Mastodon Profile Redirect

posted on 2022-11-09

As the #twitterMigration is in full swing, a lot of people post links to their Mastodon-profiles on social media. If that profile is not hosted on the instance your own profile is hosted on (which will be true more often than not), a click on the "Follow"-button will bring you to page similar to this one …

Solve WORDLE with R

posted on 2022-01-12

As seemingly everyone is playing WORDLE, I thought it would be fun to code something in R to help with the guesswork! While this technically can be considered cheating, it was still a fun exercise to code in R.

Automatisierte Wissenschaft

posted on 2019-07-12

Die Tage ging ja diese Nature-Publikation rum, in der Tshitoyan et al. über Word-Embeddings latentes Wissen aus der bestehenden Literatur der

timeSeriesLib

posted on 2016-07-27

Convert case-based to time-based data This Python library converts case-based to time-based data, which can be used in time series analysis. Usage ``` bash

Minifer for Alfred

posted on 2016-02-28

If you are a web developer, chances are, you stumbled over this piece of software. This minifier removes all unnecessary line breaks, comments and whitespace

Sass Helper for Alfred

posted on 2014-11-26

I just discovered the truly awesome css language extension Sass and as usual I wanted to use it via Alfred App. So I glued together this little workflow: Sass

Video Downloader for Alfred

posted on 2014-09-22

This workflow lets you download videos or just the audio track of a video from YouTube, Vimeo, Vine and many more [^sources] to your computer.

The workflow

Update, Umzug und neues Aussehen

posted on 2014-04-03

Goodbye Tumblr, hello Wordpress.org!

Im Zuge meines Umzugs… read more.