Skip to content

Commit

Permalink
dgpa website changed, fix
Browse files Browse the repository at this point in the history
  • Loading branch information
charlie-moomoo committed Oct 5, 2024
1 parent 6789c98 commit f91102f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,9 @@ const SearchMinecraftWiki = async (args) => {
};
};
const StopWorkSchoolChecker = async (args) => {
const page = await (await fetch("https://www.dgpa.gov.tw/")).text();
const page = await (
await fetch("https://www.dgpa.gov.tw/typh/daily/nds.html")
).text();
const dom = new JSDOM(page);
const document = dom.window.document;
const response = [...document.querySelectorAll("td")]
Expand Down

0 comments on commit f91102f

Please sign in to comment.