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

@dhnapi/news-api

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dhnapi/news-api

Simple News-API scrapper library

  • 1.0.10--up-v
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
Maintainers
2
Weekly downloads
 
Created
Source

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

NONAMEDESCRIPTION
1AntaraGet news on Antara
2BBCGet news on BBC
3CNBCGet news on CNBC
4CNNGet news on CNN
5DailyGet news on Daily
6DetikGet news on Detik
7FajarGet news on Fajar
8IDNGet news on IDN
9IndozoneGet news on Indozone
10INewsGet news on INews
11KompasGet news on Kompas
12KontanGet 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

Keywords

FAQs

Package last updated on 03 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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