mirror of
https://github.com/slurdge/goeland.git
synced 2026-11-11 13:13:58 +00:00
[GH-ISSUE #215] Filter using external script #42
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: slurdge/goeland#42
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pacien on GitHub (Dec 8, 2024).
Original GitHub issue: https://github.com/slurdge/goeland/issues/215
Thanks for making this software.
Is your feature request related to a problem? Please describe.
Some feeds I'm subscribed to have some noise in them
(sponsored articles or articles from categories I'm not interested in).
I'd like to filter out those articles, and rewrite some of them.
Describe the solution you'd like
This can be solved by piping entries through an external filter script.
Such script could be called with each individual entry (as JSON for example),
allowing the external program to do rewrites or drop some entries entirely.
Describe alternatives you've considered
Using email filters is hard because most of the information has already been
lost, and rewriting is even harder at this stage.
Proxy-ing the source RSS/Atom feed to filter and rewrite it beforehand is
possible but quite cumbersome (requiring setting up a local web server just for
that). This also means executing the script including for articles that goeland
knows it already saw.
Additional context
Some examples of my use-cases:
@pacien commented on GitHub (Dec 8, 2024):
This would also cover https://github.com/slurdge/goeland/issues/17 for sources with content which cannot be retrieved through a generic way.
@slurdge commented on GitHub (Dec 23, 2024):
Hello,
Sorry for the delay, IRL stuff is coming in right now.
I think it's great idea. Having a simple way to pipe to external tools would solve many use cases.
However:
Also, this poses the problem of the format. My initial guess would to go to a json format, maybe xml or another as a command line flag, to provide some flexibility to outside programs.
For a security POV, you would have untrusted text/data going through others programs than goeland, but I think this is acceptable, even more so if the entries have been cleaned up (as it is right now).
I'm pretty busy right now, but I'll start fleshing out some implementation.