Code Monkey home page Code Monkey logo

rss-news-to-json-node-sdk's Introduction

๐Ÿ“ฐ News RSS to JSON SDK

Introduction

This Node.js project provides an SDK/API for fetching and processing news RSS feeds. It simplifies the process of retrieving news articles from various sources in a standardized format.

Installation

To install the News RSS SDK/API, you can use npm. Open a terminal and run the following command:

npm install rss-news-to-json-node-sdk

Sample Usage

const {createRSSNewsToJSONSDKClient} = require('rss-news-to-json-node-sdk')

const init = async () => {
  const newsConfig = () => {
    return createRSSNewsToJSONSDKClient('https://news.google.com/rss')
  }
  const response = await newsConfig()
    .news()
    .listNews({q: 'bola', hl: 'id', ceid: 'ID'})

  console.log('response:', response)
}

init()

Sample Response Data

data: {
        title: '"bola" - Google Berita',
        description: 'Google Berita',
        webMaster: '[email protected]',
        generator: 'NFE/5.0',
        link: 'https://news.google.com/search?q=bola&hl=id&ceid=ID:id&gl=ID',
        language: 'id',
        copyright: '2024 Google Inc.',
        lastBuildDate: 'Tue, 02 Jan 2024 04:34:00 GMT',
        items: [
          [Object], [Object], [Object], [Object], [Object], [Object],
          [Object], [Object], [Object], [Object], [Object], [Object],
          [Object], [Object], [Object], [Object], [Object], [Object],
          [Object], [Object], [Object], [Object], [Object], [Object],
          [Object], [Object], [Object], [Object], [Object], [Object],
          [Object], [Object], [Object], [Object], [Object], [Object],
          [Object], [Object], [Object], [Object], [Object], [Object],
          [Object], [Object], [Object], [Object], [Object], [Object],
          [Object], [Object], [Object], [Object], [Object], [Object],
          [Object], [Object], [Object], [Object], [Object], [Object],
          [Object], [Object], [Object], [Object], [Object], [Object],
          [Object], [Object], [Object], [Object], [Object], [Object],
          [Object], [Object], [Object], [Object], [Object], [Object],
          [Object], [Object], [Object], [Object], [Object], [Object],
          [Object], [Object], [Object], [Object], [Object], [Object],
          [Object], [Object], [Object], [Object], [Object], [Object],
          [Object], [Object], [Object], [Object]
        ]
      }

Next To-Do List

  • [โœ…] Implement get news by keyword & others query strings

๐Ÿ’ป Open Contribution

Welcome contributions from the community!

rss-news-to-json-node-sdk's People

Contributors

ilhamfadllah avatar

Stargazers

 avatar  avatar

Watchers

 avatar

rss-news-to-json-node-sdk's Issues

Adaptable parameters for handling diverse query strings

Discussed in #2

Originally posted by graceVanderwall January 1, 2024
Hello, thank you for developing this SDK. As a novice researcher diving into RSS, I'm considering the need for accommodating flexible query strings, especially in the context of various news providers. This feature would greatly assist SDK users in aligning with third-party RSS specifications.

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.