Closure-RI commited on
Commit
cf8e6af
·
verified ·
1 Parent(s): aaa4ab4

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +2 -1
index.js CHANGED
@@ -1286,7 +1286,8 @@ async function scrapeHAnimeDetails(url) {
1286
  console.log("Data-ID URL:", dataId);
1287
 
1288
  if (dataId) {
1289
- await delay(8000); // Delay 8 detik untuk memastikan data tersedia
 
1290
 
1291
  const response = await axios.get(`https://arashicode-api.hf.space/html?url=${dataId}`);
1292
  const newPageCheerio = cheerio.load(response.data);
 
1286
  console.log("Data-ID URL:", dataId);
1287
 
1288
  if (dataId) {
1289
+ await newPage.goto(dataId, { waitUntil: "domcontentloaded" });
1290
+ await delay(17000); // Delay 8 detik untuk memastikan data tersedia
1291
 
1292
  const response = await axios.get(`https://arashicode-api.hf.space/html?url=${dataId}`);
1293
  const newPageCheerio = cheerio.load(response.data);