Spaces:
Paused
Paused
Update index.js
Browse files
index.js
CHANGED
|
@@ -1286,7 +1286,8 @@ async function scrapeHAnimeDetails(url) {
|
|
| 1286 |
console.log("Data-ID URL:", dataId);
|
| 1287 |
|
| 1288 |
if (dataId) {
|
| 1289 |
-
|
|
|
|
| 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);
|