No user agent at the moment
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user