1
0

fix: No axios
All checks were successful
Remote Deploy / deploy (push) Successful in 4s

This commit is contained in:
2025-08-31 16:38:55 +02:00
parent 4985d574d5
commit c3a2ee2c1c
3 changed files with 2 additions and 128 deletions

View File

@@ -1,9 +1,9 @@
const { default: axios } = require("axios");
const cheerio = require("cheerio");
async function parseTeachers() {
const url = "https://spsejecna.cz/ucitel";
const { data } = await axios.get(url);
const response = await fetch(url);
const data = await response.text(); // fetch needs .text() to get HTML
const $ = cheerio.load(data);
const map = {};