esana-node-api
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "esana-node-api", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Esana News || Helakuru.lk - එසැණ News - Sisula Welgamage", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
<img align="center" src="https://www.helakuru.lk/assets/images/icon.png" height="100px" width="100px"> | ||
<h1 align="center"><b> Helakuru.lk || එසැණ </b></h1> | ||
<h3 align="center"><b> API - SISULA WELGAMAGE</b></h3> | ||
<h3 align="center"><b> API - SISULA WELGAMAGE</b></h3><br> | ||
`⭕️ This project is for educational purposes only!⭕️ ` <br> | ||
`⭕️ The user shall take full responsibility for the errors such as changing the information and changing the name of the company. ⭕️` | ||
## Installation | ||
@@ -17,4 +21,2 @@ | ||
- [x] <b> NEW : esana || එසැණ news media සමඟ ලබාගත හැක.. </b> | ||
- [x] <b> කරුණාකර නවතම එසැණ සංස්කරණය භාවිතා කරන්න (v2.0.0). </b> | ||
- [x] <b> නවතම එසැණ News ලබා ගැනීමට { fetch: 'latest' } භාවිතා කරන්න... මෙය ස්වයංක්රීයව යාවත්කාලීන වීම සිදුවේ. </b> | ||
@@ -41,3 +43,2 @@ - [x] <b> පැරණි එසැණ News සියල්ල ලබා ගැනීමට { fetch: 'all' } භාවිතා කරන්න... </b> | ||
helakuru: { | ||
news_id: 1296, | ||
title: 'මුදල් රාජ්ය ඇමති සහ IMF නියෝජ්ය කළමනාකාර අධ්යක්ෂ අතර හමුවක්', | ||
@@ -55,4 +56,2 @@ description: 'මුදල් රාජ්ය අමාත්ය ෂෙහාන් සේමසිංහ සහ ජාත්යන්තර මූල්ය අරමුදලේ නියෝජ්ය කළමනාකාර අධ්යක්ෂ කෙන්ජි ඔකමුරා සමඟ සාකච්ඡාවක් පවත්වා තිබෙනව | ||
lang: 'Sinhala' | ||
media: [ 'https://news.bhashalanka.com/news_image/image_name.jpg'] | ||
//media: [ { status: false } ] | ||
} | ||
@@ -78,3 +77,3 @@ } | ||
{ | ||
id: '93795', | ||
news_id: '93795', | ||
title: 'මුදල් රාජ්ය ඇමති සහ IMF නියෝජ්ය කළමනාකාර අධ්යක්ෂ අතර හමුවක්', | ||
@@ -84,3 +83,3 @@ thumb: 'https://news.bhashalanka.com/image-library/shehan-okamura.jpg' | ||
{ | ||
id: '93794', | ||
news_id: '93794', | ||
title: 'නාවලපිටියේ පොහොට්ටුවේ රැළියක් අතරතුර ඊට විරෝධතාවය දැක්වූ පිරිසක් අත්අඩංගුවට', | ||
@@ -90,3 +89,3 @@ thumb: 'https://news.bhashalanka.com/image-library/nawalapitiya-protest.jpg' | ||
{ | ||
id: '93790', | ||
news_id: '93790', | ||
title: 'නැමීබියාවට ලකුණු 55 ක ජයක්', | ||
@@ -96,3 +95,3 @@ thumb: 'https://news.bhashalanka.com/image-library/sl-vs-nambia.jpg' | ||
{ | ||
id: '93786', | ||
news_id: '93786', | ||
title: 'ශ්රී ලංකාවට ලකුණු 164 ක ඉලක්කයක්', | ||
@@ -102,3 +101,3 @@ thumb: 'https://news.bhashalanka.com/image-library/sl-vs-nambia.jpg' | ||
{ | ||
id: '93785', | ||
news_id: '93785', | ||
title: 'අයහපත් කාලගුණයෙන් පුද්ගලයින් 55,000 ක් පමණ පීඩාවට පත්වෙයි', | ||
@@ -108,3 +107,3 @@ thumb: 'https://news.bhashalanka.com/image-library/kelani-river-flood.jpg' | ||
{ | ||
id: '93784', | ||
news_id: '93784', | ||
title: 'කාසියේ වාසිය ශ්රී ලංකාවට', | ||
@@ -114,3 +113,3 @@ thumb: 'https://news.bhashalanka.com/image-library/sl-vs-nambia.jpg' | ||
{ | ||
id: '93782', | ||
news_id: '93782', | ||
title: 'T20 ලෝක කුසලානය අරඹමින් ශ්රී ලංකාව සහ නැමීබියාව අද තරඟ බිමට', | ||
@@ -129,3 +128,3 @@ thumb: 'https://news.bhashalanka.com/image-library/sl-vs-nambia.jpg' | ||
const latest_news = await esana_scrape_from_id( { id: news_id , passcode: 'your_passcode'}) // example {id: '93782'} | ||
const latest_news = await esana_scrape_from_id( { id: news_id , passcode: 'your_passcode'}} ) // example {id: '93782'} | ||
console.log(latest_news) | ||
@@ -150,4 +149,2 @@ ``` | ||
lang: 'Sinhala' | ||
media: [ 'https://news.bhashalanka.com/news_image/image_name.jpg'] | ||
//media: [ { status: false } ] | ||
} | ||
@@ -154,0 +151,0 @@ } |
245044
149