esana-node-api

3.0.1 • Public • Published

Helakuru.lk | | එසැණ

⭕️ API (Unofficial) ⭕️

SISULA WELGAMAGE


⭕️ This project is for educational purposes only!⭕️
⭕️ The user shall take full responsibility for the errors such as changing the information and changing the name of the company. ⭕️

Base Site -: https://helakuru.lk/esana

NPM Link -: https://www.npmjs.com/package/esana-node-api

Installation

$ npm install esana-node-api
$ yarn add esana-node-api

Usage - නවතම එසැණ News ලබාගැනීමට

const {Esana} = require("esana-node-api")

async function esana_run(){

await Esana.verify('Enter Your Passcode') 
const esana_data = await Esana.fetch_news_data()
console.log(esana_data)

}
esana_run()

Output:

{
  status: 200,
  latest: true,
  esana: {
    news_id: 98376,
    title: 'දූෂණ විරෝධී පනත් කෙටුම්පත ජුනි 21දා විවාදයට ගැනීමට තීරණය කෙරේ',
    description: 'දූෂණ විරෝධී පනත් කෙටුම්පත ජුනි 21දා විවාදයට ගැනීමට තීරණය කර තිබෙනවා.',
    thumbnail: 'https://helakuru.sgp1.cdn.digitaloceanspaces.com/esana/images/lib/parliment-new-01[1].jpg',
    url: 'https://www.helakuru.lk/esana/98376',
    date: '2023-06-08 16:03:06',
    media: []
  }
}

License

MIT

Disclaimer

esana - එසැණ name, we have nothing to do with the website officially. If any complains please contact via srwusc123@gmail.com

/esana-node-api/

    Package Sidebar

    Install

    npm i esana-node-api

    Weekly Downloads

    97

    Version

    3.0.1

    License

    GNU

    Unpacked Size

    77.5 kB

    Total Files

    6

    Last publish

    Collaborators

    • sisulaw