Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Savio629 authored May 6, 2024
1 parent 63ff2b2 commit 398e1bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ async function scrapeData() {
const categoryNameForFile = category.text.replace(/[\\/:*?"<>|]/g, '-');
await page.select('#CPHPage_ddCategory', category.value);
await page.click('#CPHPage_btnShow'); // Assume there's a Show button to refresh the data
await new Promise(resolve => setTimeout(resolve, 2000));
await new Promise(resolve => setTimeout(resolve, 5000));
await page.waitForSelector('#tableReportTable');

const data = await page.evaluate(() => {
Expand Down Expand Up @@ -121,4 +121,4 @@ async function scrapeData() {
}

scrapeData();


0 comments on commit 398e1bc

Please sign in to comment.