Replies: 23 comments 16 replies
|
I came here looking for exactly this feature. In my case, I want to follow a local news source, but the majority of the articles are about sport. I would like to be able to filter out anything with '/sport/' in the url. |
|
This would be a very valuable feature for journalists! |
|
@svoop How many regexps do you think would be common for a feed? This could get rather long rather quickly! @Grotax @SMillerDev could you add a design label to this ticket? |
|
@ei8fdb From a UI perspective, multiple regexps are quite a bit more difficult and I don't see much benefit from it. |
Agreed, hence why I asked. Where do you suggest the user create those filters? |
|
I guess there are two possible places: Two additional inputs (denypattern, allowpattern) when adding a new subscription. However, I'd recommend not to, because regexp are a power user feature and it would only confuse the average user – specially since there is little to no space for explanations. An additional context menu point "Filter" which opens an overlay which contains explanations and the inputs to add/edit the denypattern and allowpattern regexp. The explanation could be something along the lines: The expressions here are examples best added as The term "regular expression" could be linked to something like https://www.petefreitag.com/cheatsheets/regex/ – there might be better, it's just what popped up on a quick Google seach. |
|
Maybe this can get be implemented in a few iterations. The minimal viable feature set doesn't need regex, or allow/block states. I think just setting a filter to block everything which matches Such kind of filter already was for example powerful enough for example to block ads like "Heise+" or "Advertisment: " and so on. |
|
@stefan-niedermann Will the filtering rather be done in SQL on the database (after reading/parsing the RSS feed) or in PHP while reading/parsing the RSS feed? |
|
@svoop i am no developer or maintainer of this app, i am a plain user and suggested a more minimal approach for the sake of a quick implementation 😉 😇 |
|
Is there any commercial or open source feed reader that offers something likes this? I think filtering during parsing might be a bit too much for feed parser especially since the feed parsing is a heavy task and there is no parallel job we want to keep it as slim as possible. So filtering could be either done on the API level or by the clients. |
|
@Grotax AntennaPod has a similar mechanism on a per-feed basis. If an episode matches some pattern, you can use that to include or exclude an episode from autodownload |
|
It would be really useful having "filters" for feeds. Following example: The Gitlab Blog https://about.gitlab.com/blog/ For example I am just interested in Releases. On the website I simply can choose the category "releases" on the left. However the website only provides one feed stream: https://about.gitlab.com/atom.xml In this stream are all messages contained. It would be really helpful if in the Nextcloud News app it would be possible to filter either title or content by search words. A simple "contains string" filter would suffice for the beginning. A regex filter would be more flexible - and maybe not harder to implement. |
|
Just wanted to keep this idea going. |
|
The Cloudflare blog includes tags in the form of multiple |
|
Some of the above requirements are handled by a small Python script which uses the News API. It can apply regular expressions to body and title and check for the age of a post, and if all defined filters match, a post is marked as read. More information is in the readme file in the repository: https://github.com/mathisdt/nextcloud-news-filter |
|
Maybe for the UI instead of having a regex string could be something like:
|
|
Is there any good way of doing this nowadays from the UI? Is there any plug-in for this? Is the python script above something that has to be run server-side every time I want to add a new filter? |
|
In this era of inflammatory political news cycles, I would love a way to introduce negative keywords to help keep my feed a little more tidy |
This comment was marked as duplicate.
This comment was marked as duplicate.
|
For those running a postgres database, here is an alternative temporary solution |
|
We have news outlets here that do ad articles. Good thing is they mark them with 'Anzeige' (which is ad in German) - and it would be cool to just ignore such articles as they don't provide much value to me |
|
So being able to filter from the NC News Ux (either under the new subscribe or settings panels) would be really helpful and make the application much more user friendly. Just need to also be able to edit/change the filter after subscription |
|
Something similar (less powerful/complicated) is being added via #3711 |


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Read and tick the following checkbox after you have created the issue or place an x inside the brackets ;)
Is your feature request related to a problem? Please describe.
Some feeds feature articles which are not interesting to the subscriber. For instance: I subscribe to a tech news feed which features articles on Android and iOS. However, since I don't have an iPhone, I'm not interested in the latter and would like to ignore such articles.
Describe the solution you'd like
A cascade of two regexp patterns might help: If the article subject matches the denypattern, it is ignored unless it also matches the allowpattern. Example:
/iOS|iPhone/i/Android/iAll reactions