Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically send to wallabag if a given tag is set #2093

Open
dylanbob opened this issue Jul 7, 2024 · 3 comments
Open

Automatically send to wallabag if a given tag is set #2093

dylanbob opened this issue Jul 7, 2024 · 3 comments
Labels
3rd party interoperability with third-party platforms feature plugin bells and whistles

Comments

@dylanbob
Copy link

dylanbob commented Jul 7, 2024

Hi, and thank you for your work on Shaarli, I use it frequently and I love it :-)

This is kind of a feature request, or simply to ask for some leads.

I am self-hosting my (updated) Shaarli instance, as well as a wallabag instance. I am using the wallabag plug-in to add articles from Shaarli to Wallabag. When I come across an interesting article, I often want to save it to both shaarli and wallabag. I do it by sending it to shaarli with some tags (using the android shaarlier app, or the firefox shaarlier extension, more rarely by browsing my shaarli), then browsing shaarli and click on the wallabag icon to add to wallabag as well, and copying the tags. Later, I will sync the article on my (freed) kindle reader to read it comfortably.

Ideally, I would like to be able to send it to both Shaarli and Wallabag in a single action. For example, if I add a given tag to my bookmark (e.g. 'wallabag' or 'article'), I would like to be added to wallabag automatically, replicating all the bookmark's tags (with or without the 'wallabag' tag, as a plug-in option).

What do you think about such a feature? Is that only possible? If so, could that be added as an option to the existing wallabag plug-in, or would that need to be developed separately?

Cheers,
Dylan

@nodiscc nodiscc added plugin bells and whistles feature 3rd party interoperability with third-party platforms labels Jul 9, 2024
@nodiscc
Copy link
Member

nodiscc commented Jul 25, 2024

Hi @dylanbob sorry for the late reply

could that be added as an option to the existing wallabag plug-in, or would that need to be developed separately?

I seem to remeber that the wallabag plugin is a very simple "send to wallabag" plugin with very few logic, so extending it would be similar to writing a new plugin from scratch

The simplest way to achieve what you want, is having Wallabag parse Shaarli RSS feeds automatically, but it seems it won't be implemented: wallabag/wallabag#3360. There is a rss2wallabag script mentioned in the issue comments; maybe you'd like to give this a try and tell us if it works for you?

@dylanbob
Copy link
Author

Hi @nodiscc. Thank you for your answer.

A python script could indeed do the trick. However, it would complexify things a bit. I wish I could achieve that using a shaarli plugin, do you think that would be feasible? Or are shaarli plugins too limited?

@nodiscc
Copy link
Member

nodiscc commented Jul 27, 2024

I think this can be done with a plugin. Shaarli provides a save_link hook which allows executing plugin code when a link is saved.

You could have a look at the shaarli2maston plugin which I think does something similar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3rd party interoperability with third-party platforms feature plugin bells and whistles
Projects
None yet
Development

No branches or pull requests

2 participants