tested and works

This commit is contained in:
Nikolai Tschacher
2019-01-30 23:53:09 +01:00
parent 581568ff18
commit 987e3d7342
16 changed files with 608 additions and 599 deletions

View File

@@ -29,7 +29,7 @@ class BingScraper extends Scraper {
for (var i=0; i < results.length; i++) {
let res = results[i];
if (res.link && res.link.trim() && res.title && res.title.trim()) {
res.rank = i+1;
res.rank = this.result_rank++;
cleaned.push(res);
}
}
@@ -104,7 +104,7 @@ class BingNewsScraper extends Scraper {
for (var i=0; i < results.length; i++) {
let res = results[i];
if (res.link && res.link.trim() && res.title && res.title.trim()) {
res.rank = i+1;
res.rank = this.result_rank++;
cleaned.push(res);
}
}