This commit is contained in:
@@ -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 = {};
|
||||
|
||||
Reference in New Issue
Block a user