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 8, 2024
1 parent 27d48f2 commit a471358
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ async function scrapeData() {
const years = await getOptions(page, '#CPHPage_ddFinyear');

// Filter out the "-Select Year-" option
const validYears = years.filter(year => year.value === "2023-2024" || year.value === "2024-2025");
const year = years.filter(year => year.value === "2023-2024" );

for (let year of validYears) {
// for (let year of validYears) {
const yearFolder = path.join(dataDir, year.text.replace(/[\\/:*?"<>|]/g, '-'));
if (!fs.existsSync(yearFolder)) {
fs.mkdirSync(yearFolder);
Expand Down Expand Up @@ -180,7 +180,7 @@ async function scrapeData() {
}
}
// }
}
// }

await browser.close();
} catch (err) {
Expand Down

0 comments on commit a471358

Please sign in to comment.