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

@dhnapi/news-api

Package Overview
Dependencies
Maintainers
1
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.0--beta-v
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

News-API

Simple News-API scrapper library

@@ Created on 1-12-21 | Dehanjing @@

Installation

using npm package manager

npm install @dhnapi/news-api

using yarn package manager

yarn add @dhnapi/news-api

Features

NONAMEDESCRIPTION
1CNNGet news on CNN ID
2BBCGet news on BBC ID
3CNBCGet news on CNBC

Examples

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

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

dapi.cnn((response, error) => {
   if (error) return console.error(error.stack);
   
   /**
    * @return response {Object}
    * @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

Keywords

FAQs

Package last updated on 02 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