GithubHelp home page GithubHelp logo

53seven / node-blindparser Goto Github PK

View Code? Open in Web Editor NEW
31.0 31.0 12.0 57 KB

blindparser is an all purpose RSS/ATOM feed parser that parses feeds into a common format so that you do not have to care if they are RSS or ATOM feeds

License: Other

JavaScript 100.00%
atom-feed-parser javascript nodejs rss-feed-parser

node-blindparser's People

Contributors

adamsea avatar bkleiner avatar greenkeeperio-bot avatar kiernanmcgowan avatar taterbase avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

node-blindparser's Issues

Problem with malformed (empty) feeds.

When a feed only returns:

and nothing else (except sometimes a lot of whitespace), the callback isn't triggered at all.
I would expect it to give me back an error.

I know the feeds are bad, but it would be nice if I could detect and handle that using Blindparser.

Thanks for a fast and easy way to grab feeds! Love this module!

Not getting errors properly

Hello,

Having the following code:

        var options = {
            followRedirect: true,
            timeout: 5000
        };

        parser.parseURL(url, options, function(err, out){
            console.log(out);
            console.log(err);
            if (err) return res.send(400, { error: err });
            return res.send(200, { out: out });
        });

I get a 200 OK with content mismatch and, printed on the console, I got:

[ERROR] 02:08:08 Error
Error: Unexpected close tag
Line: 1158
Column: 9
Char: >

It's impossible to catch the error. What I'm doing wrong?

An in-range update of xml2js is breaking the build 🚨

Version 0.4.18 of xml2js just got published.

Branch Build failing 🚨
Dependency xml2js
Current Version 0.4.17
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

xml2js is a direct dependency of this project this is very likely breaking your project right now. If other packages depend on you it’s very likely also breaking them.
I recommend you give this issue a very high priority. I’m sure you can resolve this 💪

Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details

Commits

The new version differs by 28 commits.

  • 51ce146 Update for next release
  • 434abf4 Merge branch 'adrai-patch-1'
  • b96c1a9 Do not upgrade to new major versions unasked
  • 36699c1 Follow XML 1.1 spec for valid chars instead of 1.0
  • af83e31 Merge pull request #370 from flexi-xu/master
  • 6852241 Add test for the fix of issue #119
  • 547350e Fix issue #119.
  • 6821d3d Merge branch 'd3adc0d3-master'
  • b19675f Credit d3adc0d3
  • b9b44e0 Empty strings now returns error cause its not valid XML
  • 8374f68 Credit Lovell
  • 2386f4c Merge pull request #369 from lovell/onclosetag-wrap-trycatch
  • 5b83012 Wrap try/catch with function to allow V8 to optimise onclosetag
  • b5e351a Merge pull request #354 from DrShaffopolis/key-aware-parsers
  • 248109b update readme for attribute/node name aware processors

There are 28 commits in total.

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

error strings

it seems like it's most common to pass a node error object (e.g. new Error('whatever') ) as first parameter into the callback in case something goes wrong.
This module uses mostly plain strings which is rather confusing if one is used to the common way of doing it since if(err) return console.error(err.stack) results in the output undefined
if @dropdownmenu agrees i'd be happy to supply a pull request

UTF8

Very nice parse. My question is when i have special characters like áéíóú etc, the parser return a ? instead of the character or utf8 code.
Any help is appreciated

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.