added scraper test
This commit is contained in:
parent
32d96a7cb8
commit
caa592c213
@ -97,6 +97,7 @@ class MasterScraper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async addToDB() {
|
async addToDB() {
|
||||||
|
console.log(`+ ${this.siteid} addToDB`);
|
||||||
for(const item of this.items) {
|
for(const item of this.items) {
|
||||||
console.log(item);
|
console.log(item);
|
||||||
|
|
||||||
@ -107,7 +108,9 @@ class MasterScraper {
|
|||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.error(err.message || 'Some error occurred while querying the database.');
|
console.error(err.message || 'Some error occurred while querying the database.');
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
console.log(`- ${this.siteid} addToDB`);
|
||||||
}
|
}
|
||||||
|
|
||||||
async filterAdverts() {
|
async filterAdverts() {
|
||||||
|
Loading…
Reference in New Issue
Block a user