Update index.js

This commit is contained in:
nguyentrungthat 2026-04-13 07:57:07 +07:00
parent 14cb578150
commit f422279a36
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ async function scrapeWithPuppeteer(url, name) {
const date = new Date(soldText); const date = new Date(soldText);
if (isNaN(date.getTime())) return; if (isNaN(date.getTime())) return;
const daysDiff = (Date.now() - date.getTime()) / (1000 * 60 * 60 * 24); 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"); const linkEl = node.querySelector("div.su-image a");
if (linkEl) { if (linkEl) {