Giter VIP home page Giter VIP logo

news-api's Introduction

News-API

Simple News-API scrapper library

@@ Created on 1-12-21 | Dehanjing @@
+ Updated on 3-12-21 | Dehanjing

Installation

using npm package manager

npm install @dhnapi/news-api

using yarn package manager

yarn add @dhnapi/news-api

Features

NO NAME DESCRIPTION
1 Antara Get news on Antara
2 BBC Get news on BBC
3 CNBC Get news on CNBC
4 CNN Get news on CNN
5 Daily Get news on Daily
6 Detik Get news on Detik
7 Fajar Get news on Fajar
8 IDN Get news on IDN
9 Indozone Get news on Indozone
10 INews Get news on INews
11 Kompas Get news on Kompas
12 Kontan Get news on Kontan

Example

"use strict";
let NewsAPI = require("@dhnapi/news-api");
let dapi = new NewsAPI();

// @return {Object} class
// console.log(dapi);

/**
 *
 * CNN - ID
 * @param callback {Function}
 *
**/

dapi.cnn((response, error) => {
   if (error) return console.error(error.stack);
   
   /**
    * @return {Object} response
    * @object AxiosResponse
   **/
   
   return console.info("success scrapping ~~", JSON.stringify(response.data, null, 2));
});

Information

+ dont forget to star <3
! contribute to this project! ~~~
- please add issue if you having problem with installation

! github: https://github.com/Dehanjing/news-api

news-api's People

Contributors

dehanjing avatar

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.