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 }) {
|
||||
const {
|
||||
url = "https://webuntis.com/#/basic/login",
|
||||
url = "https://mese.webuntis.com/WebUntis/?school=LMG+Crailsheim",
|
||||
username = "LehmanLuc",
|
||||
password = "",
|
||||
school = "LMG Crailsheim", // ggf. "Lise-Meitner-Gymnasium"
|
||||
debug = true,
|
||||
timeoutMs = 60000,
|
||||
maxTimeout = 15000,
|
||||
screenshotFullPage = true,
|
||||
timeoutMs = 10000,
|
||||
maxTimeout = 3000,
|
||||
screenshotFullPage = false,
|
||||
output = "json" // "png" | "json"
|
||||
} = context || {};
|
||||
|
||||
@ -438,6 +438,7 @@ export default async function ({ page, context }) {
|
||||
|
||||
|
||||
|
||||
|
||||
const buf = await takePngBuffer();
|
||||
const screenshot_b64 = buf ? "data:image/png;base64," + buf.toString("base64") : null;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user