optimized webuntil getbearer loading directly school login
This commit is contained in:
parent
1163b61374
commit
b535d45e97
@ -5,14 +5,14 @@
|
|||||||
|
|
||||||
export default async function ({ page, context }) {
|
export default async function ({ page, context }) {
|
||||||
const {
|
const {
|
||||||
url = "https://webuntis.com/#/basic/login",
|
url = "https://mese.webuntis.com/WebUntis/?school=LMG+Crailsheim",
|
||||||
username = "LehmanLuc",
|
username = "LehmanLuc",
|
||||||
password = "",
|
password = "",
|
||||||
school = "LMG Crailsheim", // ggf. "Lise-Meitner-Gymnasium"
|
school = "LMG Crailsheim", // ggf. "Lise-Meitner-Gymnasium"
|
||||||
debug = true,
|
debug = true,
|
||||||
timeoutMs = 60000,
|
timeoutMs = 10000,
|
||||||
maxTimeout = 15000,
|
maxTimeout = 3000,
|
||||||
screenshotFullPage = true,
|
screenshotFullPage = false,
|
||||||
output = "json" // "png" | "json"
|
output = "json" // "png" | "json"
|
||||||
} = context || {};
|
} = context || {};
|
||||||
|
|
||||||
@ -438,6 +438,7 @@ export default async function ({ page, context }) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const buf = await takePngBuffer();
|
const buf = await takePngBuffer();
|
||||||
const screenshot_b64 = buf ? "data:image/png;base64," + buf.toString("base64") : null;
|
const screenshot_b64 = buf ? "data:image/png;base64," + buf.toString("base64") : null;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user