Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

indo-news-scraper

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

indo-news-scraper - npm Package Compare versions

Comparing version 1.0.1 to 1.1.1

lib/websites/Liputan6.js

4

lib/index.js

@@ -7,2 +7,3 @@ 'use strict';

const Republika = require('./websites/Republika.js');
const Liputan6 = require('./websites/Liputan6.js');

@@ -13,3 +14,4 @@ module.exports = {

Kompas: Kompas,
Republika: Republika
Republika: Republika,
Liputan6: Liputan6
}

@@ -53,3 +53,3 @@ 'use_strict';

var d = moment(dateString);
var d = moment(dateString, 'DD MMMM YYYY HH:mm');
return d.toISOString();

@@ -56,0 +56,0 @@ }

@@ -32,9 +32,11 @@ 'use_strict';

$('.gsc-webResult').each((e, el) => {
// $(el).find('header').find('.simple-share').children().next().children().remove('i');
newsData.push({
title: $(el).find('a.gs-title').html().replace(/(<([^>]+)>)/ig, ''),
url: $(el).find('a.gs-title').data('ctorig'),
img: $(el).find('img.gs-image').attr('src'),
date: null
});
var rawTitle = $(el).find('a.gs-title').html();
if(rawTitle){
newsData.push({
title: rawTitle === null ? null : rawTitle.replace(/(<([^>]+)>)/ig, ''),
url: $(el).find('a.gs-title').data('ctorig'),
img: $(el).find('img.gs-image').attr('src'),
date: null
});
}
});

@@ -41,0 +43,0 @@

@@ -50,3 +50,3 @@ 'use_strict';

var d = moment(dateString);
var d = moment(dateString, 'DD MMMM YYYY HH:mm');
return d.toISOString();

@@ -53,0 +53,0 @@ }

{
"name": "indo-news-scraper",
"version": "1.0.1",
"description": "Indonesia online news scrapper made using NodeJS",
"version": "1.1.1",
"description": "Indonesia online news scrapper made for NodeJS",
"main": "lib/index.js",

@@ -6,0 +6,0 @@ "scripts": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc