Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
indonesian-news-scraper
Advanced tools
NodeJS module for scraping Indonesian news site. Websites available:
$ npm install --save indonesian-news-scraper
Scrap all news in the website's main page. The number of news scraped varies according to website.
var kompas = require('indonesian-news-scraper').Kompas;
kompas.scrap()
.then(function (scraps) {
console.log(scraps[0])
})
/***
{ url: 'http://megapolitan.kompas.com/read/2015/11/05/13554811/DKI.Akan.Tambah.Dana.Hibah.untuk.Wilayah.yang.Dilintasi.Truk.Sampah',
title: 'DKI Akan Tambah Dana Hibah untuk Wilayah yang Dilintasi Truk Sampah',
date: '2015-11-05 T10:08:55Z',
img: 'http://assets.kompas.com/data/photo/2015/05/14/173048120150507-140842780x390.JPG',
content: 'Sekretaris Daerah (Sekda) DKI Saefullah ..... ',
source: 'Kompas' }
***/
kompas.scrap()
.then(function (scraps) {
var titles = scraps.map(function (news) {return news.title})
console.log(titles)
})
/***
[ 'DKI Akan Tambah Dana Hibah untuk Wilayah yang Dilintasi Truk Sampah',
'Sanusi Anggap Sikap Ahok Picu Aksi Warga Tolak Truk Sampah DKI',
'Persiapan Daerah Menghadapi MEA',
'Tangani Kasus Kebakaran Lahan, Kejagung Bantu Kejaksaan di Daerah',
'"Tak Perlu Khawatir dengan Letusan Gunung Rinjani"',
'Ini 5 Menteri Terbaik Jokowi-JK Versi Survei LSJ',
'Warga Siap Demo Lebih Besar jika Truk DKI Langgar Kesepakatan',
'Kumpul di Istana, Ini yang Dibahas Jokowi dan Pimpinan DPR',
'Yusril Ajak DKI Selesaikan Masalah Sampah dengan Damai',
'Kisruh Sampah DKI, Polisi Minta Pemprov dan Pengelola Lakukan Mediasi',
'Dipecat, Buruh Bawa Anak Istri Mengadu ke DPRD',
'Bahas Beberapa Kasus Korupsi, Kabareskrim Temui Pimpinan KPK' ]
***/
Get all URLs in the website's main page
var kompas = require('indonesian-news-scraper').Kompas;
kompas.getURLs()
.then(function (urls) {
console.log(urls)
})
/***
[ 'http://megapolitan.kompas.com/read/2015/11/09/12372421/Wakil.Wali.Kota.Bekasi.Izin.Melintas.24.Jam.Truk.Sampah.DKI.Hanya.Sementara',
'http://regional.kompas.com/read/2015/11/09/12305981/Terduga.Teroris.yang.Tewas.di.Sulteng.Belum.Teridentifikasi',
'http://megapolitan.kompas.com/read/2015/11/09/12103131/Bicarakan.Kisruh.Sampah.Ahok.Akan.Bertemu.Wali.Kota.Bekasi.',
'http://nasional.kompas.com/read/2015/11/09/11555121/Masa.Peminjaman.Gedung.BNN.Milik.Polri.Habis.Desember.2015',
'http://megapolitan.kompas.com/read/2015/11/09/11543021/Truk.Sampah.DKI.Diizinkan.Melintas.24.Jam.DPRD.Bekasi.Tetap.Ingin.Evaluasi.MoU.',
'http://nasional.kompas.com/read/2015/11/09/11434001/Sore.Ini.Presiden.Italia.Akan.Temui.Jokowi.di.Istana.Merdeka',
'http://megapolitan.kompas.com/read/2015/11/09/11425941/Kampung.Pulo.Masih.Kebanjiran.Warga.Minta.Ahok.Buat.Gorong-gorong',
'http://megapolitan.kompas.com/read/2015/11/09/11395131/Organda.Jangan.Selalu.Salahkan.Sopir.',
'http://internasional.kompas.com/read/2015/11/09/11372961/Kerusuhan.Pecah.di.Pusat.Tahanan.Imigrasi.Australia.di.Christmas.Island',
'http://nasional.kompas.com/read/2015/11/09/11363951/Fahri.Hamzah.Sebut.Soeharto.Layak.Dapat.Gelar.Pahlawan',
'http://nasional.kompas.com/read/2015/11/09/11354671/Kasus.Suap.APBD.KPK.Panggil.9.Anggota.DPRD.Sumut.2009-2014',
'http://regional.kompas.com/read/2015/11/09/11294151/Antisipasi.Ancaman.Teroris.Petugas.Keamanan.Khusus.Disiagakan.di.Candi' ]
***/
var kompas = require('indonesian-news-scraper').Kompas;
var detik = require('indonesian-news-scraper').Detik;
var tempo = require('indonesian-news-scraper').Tempo;
var kapanLagi = require('indonesian-news-scraper').KapanLagi;
var tempoEnglish = require('indonesian-news-scraper').TempoEnglish;
var antara = require('indonesian-news-scraper').Antara;
var republika = require('indonesian-news-scraper').Republika;
var okezone = require('indonesian-news-scraper').Okezone;
var liputan6 = require('indonesian-news-scraper').Liputan6;
var viva = require('indonesian-news-scraper').Viva;
MIT © Ananta Pandu
FAQs
Indonesian online news scraper for NodeJS
The npm package indonesian-news-scraper receives a total of 2 weekly downloads. As such, indonesian-news-scraper popularity was classified as not popular.
We found that indonesian-news-scraper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.