Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rssspider

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rssspider - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

13

package.json
{
"name": "rssspider",
"version": "1.1.0",
"version": "1.2.0",
"author": "Liu Xing <shanelau1021@gmail.com> (http://kissliux.github.io)",
"description": "The simplest way to use rssspide to fetch rss list and site info. Fetch post'content ,give clean view to you. ",
"email": "shanelau1021@gmail.com",
"homepage": "https://github.com/kissliux/rssSpider",
"homepage": "https://github.com/shanelau/rssSpider",
"repository": {
"url": ""
"url": "https://github.com/shanelau/rssSpider"
},
"main": "index.js",
"engines": {
"node": "0.12.x"
"node": ">=0.12.x"
},
"sciprts": {
"test": "nodeunit test/index.js"
},
"dependencies": {

@@ -21,3 +24,3 @@ "bluebird": "^2.3.2",

"lodash": "^2.4.1",
"node-readability": "^1.0.1",
"node-readability": "^1.0.2",
"readability": "^0.1.0",

@@ -24,0 +27,0 @@ "request": "^2.45.0"

@@ -155,5 +155,8 @@ # rssSpider

## updrade
Add node 4.x support
### Any question [shanelau](http://weibo.com/kissliux)
or
[shanelau1021@gmail.com](shanelau1021@gmail.com)

@@ -5,37 +5,36 @@ /**

var spide = require('../index'),
url = 'http://www.bigertech.com/rss';
exports.fetchRSS = function(test){
spide.fetchRss(url).then(function(data){
test.ok(data.length > 0, "this assertion should pass");
test.done();
});
url =
'http://wan.meizu.com/rss';
exports.fetchRSS = function(test) {
spide.fetchRss(url).then(function(data) {
test.ok(data.length > 0, "this assertion should pass");
test.done();
}).catch(test.done);
}
};
exports.fetchSiteInfo = function(test) {
spide.siteInfo(url).then(function(data) {
test.ok(data.title !== '', "this assertion should pass");
test.done();
}).catch(function(err) {
console.error(err);
});
exports.fetchSiteInfo = function(test){
spide.siteInfo(url).then(function(data) {
console.log(data);
test.ok(data.title !== '', "this assertion should pass");
test.done();
}).catch(function(err){
console.error(err);
});
};
exports.getAllByUrl = function(test){
spide.getAllByUrl(url).then(function(data) {
test.ok(data.length > 0, "this assertion should pass");
test.done();
});
exports.getAllByUrl = function(test) {
spide.getAllByUrl(url).then(function(data) {
test.ok(data.length > 0, "this assertion should pass");
test.done();
});
};
exports.getPostContent = function(test){
var url = 'http://www.bigertech.com/post/the-art-of-mfc/';
spide.getCleanBody(url).then(function(data){
test.ok(data.title != '', "this assertion should pass");
test.done();
}).catch(function(err){
console.error(err);
});
exports.getPostContent = function(test) {
var url = 'http://www.bigertech.com/post/the-art-of-mfc/';
spide.getCleanBody(url).then(function(data) {
test.ok(data.title != '', "this assertion should pass");
test.done();
}).catch(function(err) {
console.error(err);
});
};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc