Skip to content

Commit

Permalink
resulting
Browse files Browse the repository at this point in the history
  • Loading branch information
ImJustChew committed Jun 18, 2024
1 parent ee14951 commit 07f8902
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/headless_ais.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ export const signInToCCXP = async (studentid: string, password: string): SignInT
"body": null,
"method": "GET"
});

const body = await res.text();
console.log('ccxp:', body)
if(!body) {
continue;
}
Expand Down Expand Up @@ -200,8 +202,9 @@ export const signInToCCXP = async (studentid: string, password: string): SignInT
return { ACIXSTORE };
}
}
console.log('congrats')
const result = await ocrAndLogin();

console.log("result",result)


const html = await fetch(`https://www.ccxp.nthu.edu.tw/ccxp/INQUIRE/JH/4/4.19/JH4j002.php?ACIXSTORE=${result.ACIXSTORE}&user_lang=`, {
Expand Down

0 comments on commit 07f8902

Please sign in to comment.