GithubHelp home page GithubHelp logo

Comments (4)

mwaterfall avatar mwaterfall commented on July 29, 2024

The full feed contents must be downloaded for the XML document to be valid and the parsing to begin. However you are able to stop the parsing operation after the first item has been parsed (i.e. calling the -stopParsing the first time -feedParser:didParseFeedItem: is called). This will prevent the parser from parsing of the rest of the document. Hope this helps.

from mwfeedparser.

bluekite2000 avatar bluekite2000 commented on July 29, 2024

The parsing doesnt take much time. its the downloading. Can I do parallel downloading? Or can I just download new articles (currently I m downloading a big feed every hour but usually 95% of the feed is old news ie. i have already downloaded and parsed them) Is then a way to just download articles that have NOT been downloaded before?

from mwfeedparser.

mwaterfall avatar mwaterfall commented on July 29, 2024

Unfortunately I'm not aware of any easy way of doing this. I'm sure it's possible, however it's out of the scope of this project.

If you were to successfully merge previously downloaded data and new feed items, you could fork this project and pass the XML parser your own NSData object containing the new merged document.

Best of luck!

from mwfeedparser.

bluekite2000 avatar bluekite2000 commented on July 29, 2024

I dont want to merge previously downloaded data and new feed items. Previously downloaded data has already been parsed. I dont want to parse it again. If a user refreshes, I want to download articles that have been recently published. Since you said you need to download the entire feed before you need to parse it, it sounds redundant since the app will have to parse articles it has parsed before.

from mwfeedparser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.