esana-node-api
v3.0.1
Published
Esana News || Helakuru.lk - එසැණ News
Downloads
411
Readme
⭕️ 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
Disclaimer
esana - එසැණ
name, we have nothing to do with the website officially. If any complains please contact via [email protected]