You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const url = "https://moodle.runi.ac.il/2024/";
const username = ""; // It is an empty string but in the code the real username exists.
const password = ""; // It is an empty string but in the code the real password exists.
const moodle = new Moodle(undici.fetch, url);
async function init() {
await moodle.login(username, password);
}
init();
The text was updated successfully, but these errors were encountered:
In Moodle.js, line 50:
"form.append("logintoken", $("[name='logintoken']")[0].attribs.value);"
I get the following error:
My JS code:
const { Moodle } = require("moodle-scrape");
const undici = require("undici");
const url = "https://moodle.runi.ac.il/2024/";
const username = ""; // It is an empty string but in the code the real username exists.
const password = ""; // It is an empty string but in the code the real password exists.
const moodle = new Moodle(undici.fetch, url);
async function init() {
await moodle.login(username, password);
}
init();
The text was updated successfully, but these errors were encountered: