Update index.js
This commit is contained in:
parent
14cb578150
commit
f422279a36
2
index.js
2
index.js
|
|
@ -118,7 +118,7 @@ async function scrapeWithPuppeteer(url, name) {
|
|||
const date = new Date(soldText);
|
||||
if (isNaN(date.getTime())) return;
|
||||
const daysDiff = (Date.now() - date.getTime()) / (1000 * 60 * 60 * 24);
|
||||
if (daysDiff > 7) return;
|
||||
if (daysDiff > 14) return;
|
||||
|
||||
const linkEl = node.querySelector("div.su-image a");
|
||||
if (linkEl) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue