No user agent at the moment

This commit is contained in:
2025-10-31 15:44:40 +00:00
parent 9f906b84b5
commit 09ecb5c987

View File

@@ -22,11 +22,7 @@ app.get('/classe', async (req, res) => {
const url = `https://webapps.itisravenna.it/Orario/index.php?view=classe&id=${classe}`;
const response = await axios.get(url, {
headers: {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36'
}
});
const response = await axios.get(url);
const $ = cheerio.load(response.data);