53seven / node-blindparser Goto Github PK
View Code? Open in Web Editor NEWblindparser 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
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
Hi,
Can you help me. I am trying to get the MP3 url from this feed.
For other feeds this application works great but for this one it doesn't show the feed.
https://rss.whooshkaa.com/rss/podcast/id/975
the feed here does not return anything.
var parser = require('blindparser');
var options = {};
parser.parseURL('http://feeds.feedburner.com/TechCrunch', options,function(err,out){
console.log(err);
console.log(out);
});
any idea if you can modify to parse feedburner feeds?
not able to parse feed, let me know if its something you might be able to help me with.
Error:
xml2js.js:212
throw ex;
^
TypeError: undefined is not a function
simple script that im trying:
var parser = require('blindparser');
parser.parseURL('http://feeds.feedburner.com/TechCrunch',function(err,out){
console.log(err);
console.log(out);
});
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
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
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!
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?
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 💪
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
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot 🌴
I was trying out blindparser and threw some podcasts at it and it crashes on this one: http://ember.land/?format=rss
Its a square-space generated feed so I think its probably rss compliant. The error is:
Unexpected close tag
Line: 10
Column: 7
Char: >
I think its having problems parsing the cdata.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.