Skip to content

doke-v/delfi-newscaster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

delfi-newscaster

Simple announcer for Estonian news portal delfi.ee. If top headline changes, the user gets an object with relevant details (headline, url, comment count).

Installation

$ npm install delfi-newscaster

Usage example

const delfi = require("delfi-newscaster")
    
delfi(function(err, data) {
console.log(data.headline) // =>  Kohtuotsus võib sundida sadu kliente hanitanud Swedbanki vastutama
})

API

delfi(callback, interval)

callback
Required
Type: function

Callback function which returns either error or data (error-first callback)

interval
Optional
Type: number

Time between requests, in milliseconds. If not provided then default interval is set to 120000 ms (120 seconds)

Licence

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published