eksisozlukjs
Advanced tools
Comparing version 1.0.8 to 1.0.9
var https = require('https'); | ||
const cheerio = require('cheerio'); | ||
module.exports.getEntry = getEntry(); | ||
module.exports.getEntry = getEntry; | ||
function getEntry(subject, callback) { | ||
var subject = subject.toLocaleLowerCase(); | ||
subject = subject.toLocaleLowerCase(); | ||
https.get('https://eksisozluk.com/' + encodeURI(subject), (res) => { | ||
@@ -29,3 +29,3 @@ var entries = []; | ||
t(".content").each(function(i, elem){ | ||
texts[i] = t(this).text(); | ||
texts[i] = t(this).text().replace(/(^[ \t]*\n)/gm, "").trim(); | ||
}) | ||
@@ -46,3 +46,3 @@ for(i = 0; i < authors.length; i++){ | ||
f(".content").each(function(i, elem){ | ||
texts[i] = f(this).text(); | ||
texts[i] = f(this).text().replace(/(^[ \t]*\n)/gm, "").trim(); | ||
}) | ||
@@ -49,0 +49,0 @@ f(".entry-author").each(function(i, elem){ |
{ | ||
"name": "eksisozlukjs", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "Eksi Sozluk Scraper", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3655