nmdias / FeedKit

An RSS, Atom and JSON Feed parser written in Swift
MIT License
1.19k stars 173 forks source link

Partial Feed Parsing #121

Open normand1 opened 4 years ago

normand1 commented 4 years ago

I'd love a way to parse just part of a feed. Some RSS feeds can be extremely long so it would be nice to just parse certain portions of an RSS feed or a certain number of items as specified.

mlm249 commented 4 years ago

This would be useful to me too

GarthSnyder commented 4 years ago

@normand1 or @mlm249, can you explain the use case for this in a bit more detail?

mlm249 commented 4 years ago

I'd just like to load only 10 items from a feed, for instance, rather than the thousands that some feeds have.

That being said I'm pretty sure this is the wrong tool for that. After looking into it, seems like this is a feature better suited for services that literally store feeds in a database and produce a single predictable outcome type of data.

joshdholtz commented 4 years ago

I was thinking about something like this too! I'm wanting to parse feeds in a a memory sensitive operation. I'm thinking of making a proof of concept and making PR (but no need to take it 😇)

GarthSnyder commented 4 years ago

Yes, that would be helpful. I'm still not getting a clear idea of exactly what API is being requested here.