Filter stuff out of an RSS feed

by Alrescha, (2814 days ago)
edited by Alrescha,

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 Alrescha, (2813 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, (2812 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 ⌂, Питер, (2802 days ago) @ Alrescha

And what happened?

Filter stuff out of an RSS feed

by Alrescha, (2802 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, (2575 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, (2575 days ago) @ cpunke
edited by Alrescha,

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