Filter stuff out of an RSS feed

by Alrescha, Saturday, April 07, 2018, 21:20 (2554 days ago)
edited by Alrescha, Saturday, April 07, 2018, 21:35

I know I can filter (select) RSS entries with /string/, and while I am not a php guru I understand that selfoss uses preg_match, so I might be able to filter out a string with /(?:(?!string).)/, but that seems like it would be a mess for a long list.

Is there a better way? I would really like to have a blacklist of strings I just don't want to see in my RSS feeds using the RSS spout.

Thank you,

A.

Filter stuff out of an RSS feed

by jtojnar, Sunday, April 08, 2018, 19:22 (2553 days ago) @ Alrescha

Unfortunately, there is no better way at the moment. Advanced filters are tracked in https://github.com/SSilence/selfoss/issues/858#issuecomment-329768432

Filter stuff out of an RSS feed

by Alrescha, Sunday, April 08, 2018, 22:45 (2553 days ago) @ jtojnar

OK, thank you.

I'm currently pulling my feed using a local client, and using its filters to do the work. I look forward to returning to the selfoss web client some day.

Best,

A.

Filter stuff out of an RSS feed

by Alrescha, Tuesday, April 10, 2018, 00:56 (2552 days ago) @ Alrescha

(replying to myself)

Just FYI,

My suggestion of /(?:(?!string).)/ does not appear to work but /^(?!.*string).*$/ seems to do the right thing. Thus emboldened, I am going to try /^(?!.*(string1|string2)).*$/ next.

Filter stuff out of an RSS feed

by vazonov44 ⌂, Питер, Thursday, April 19, 2018, 11:29 (2542 days ago) @ Alrescha

And what happened?

Filter stuff out of an RSS feed

by Alrescha, Thursday, April 19, 2018, 16:20 (2542 days ago) @ vazonov44

It works well enough; I have stopped using the local client and am back to the web interface again. I am currently using:

/^(?!.*(string1|string2|string3)).*$/

I think I've seen one or two occasions where things that should be filtered were not, I'm guessing that there's something specific about those entries (formatting, special characters, etc.) but I haven't seen enough of them to detect a pattern.

Filter stuff out of an RSS feed

by cpunke, Sunday, December 02, 2018, 14:35 (2315 days ago) @ Alrescha

Hi Alrescha,

I used your filter, which worked fine in 2.17.

Since update to 2.18 the filter doesn't work anymore.

Do you have the same problem?

regards
cpunke

Filter stuff out of an RSS feed

by Alrescha, Sunday, December 02, 2018, 22:06 (2315 days ago) @ cpunke
edited by Alrescha, Sunday, December 02, 2018, 22:21

I had not noticed any changes, but I should add that I cycle in and out of using RSS and the breaking news style of feeds where I was using these filters a lot are now handled by different application.

RSS Feed of thread
powered by my little forum