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

Allow filtering by item category #753

Closed
GutHib opened this issue Apr 9, 2016 · 5 comments
Closed

Allow filtering by item category #753

GutHib opened this issue Apr 9, 2016 · 5 comments

Comments

@GutHib
Copy link

GutHib commented Apr 9, 2016

Question - is it possible to retreive only feeds with a certain tag in the rss/xml code? (I hope I am explaining this properly - when you look at the XML code of any given feed, you will see various custom tags that can be used in APIs and the like to retrieve just certain elements of a feed.)

Is it possible to somehow put these as URL paramters? Or can I use the selfoss filter for this? Thanks!

@jtojnar
Copy link
Member

jtojnar commented May 27, 2016

Unless the web site supports it, adding URL parameters won’t do you any good.

Also I am not exactly sure what do you intend to achieve. Do you want to extract content of a certain element in each <item> and display it in selfoss instead of <description>? Or do you want to filter the <item>s based on the content of said element?

@GutHib
Copy link
Author

GutHib commented May 28, 2016

Yes, I would like to filter items based on the existing tags for each item. Most feeds come with meaningful information in these tags (like, let's say, category or storytype) but it seems like virtually all readers like selfoss ignore these tags and only allow filtering by plaintext search (i.e. looking for a keyword in the title or body). I think it's a shame, because this means routinely ignoring a bag of RSS goodies that really shouldn't be that hard to access.

@jtojnar
Copy link
Member

jtojnar commented May 28, 2016

Yes, current filters (implemented in #606) can’t do much. It would be nice to have some advanced filtering system, similar to ones WireShark or GMail have, or even full-fledged XPath.

I am currently taking exams, maybe someone else can send a PR.

@jtojnar jtojnar changed the title URL parameters? Allow filtering by item category Jun 9, 2017
@jtojnar
Copy link
Member

jtojnar commented Jun 9, 2017

item element in RSS can contain category elements. SimplePie provides get_categories method.

@jtojnar
Copy link
Member

jtojnar commented Mar 28, 2023

#1423 implemented this for SimplePie-based feeds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants