feed-user
This package is made for developpers that want to create a client application for RSS readers. This has been made within a school project, so the quality of the package is not as good as a senior developper.
Last updated 2 months ago by kvendev .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install feed-user 
SYNC missed versions from official npm registry.

Introduction

This package has for objective to help RSS feeds' users to handle them. Atom links are not handled yet.

BE CAREFUL !! This project was made within a school project. Maintainance may not be punctual.

Installation

npm install feed-user

Usage

var feedu = require('feed-user');

var urls = [
    "https://stackoverflow.com/feeds",
    "http://feeds.bbci.co.uk/news/rss.xml"
];

urls.forEach(url => {
    //Main function
    feedu.fetchRSS(url, (feed) => {
        for (let i = 0; i < feed.length; i++) {
            console.log(feed[i].title, feed[i].link);
        }
        var itemsArray = feed;
    })
    //Overwrite a JSON file
    .feedOverwriteJSON(itemsArray, PATH_TO_FILE, enableTodaysDateNaming)
    //or append to an existing one !
    .feedAppendJSON(itemsArray, PATH_TO_FILE);
});

//Gathers html file from link (experimental)
feedu.getArticle(itemsArray[3].link);

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

BE AWARE : I am not an expert, still studying toughly, and stay in love of Node.js. This may not be the quality you expected. I apologize for all disagreements.

License

MIT

Current Tags

  • 1.1.3                                ...           latest (2 months ago)

6 Versions

  • 1.1.3                                ...           2 months ago
  • 1.1.2                                ...           2 months ago
  • 1.1.1                                ...           2 months ago
  • 1.1.0                                ...           2 months ago
  • 1.0.1                                ...           2 months ago
  • 1.0.0                                ...           2 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |