Answer the question
In order to leave comments, you need to log in
Why is old HTML returned when parsing a site?
I'm parsing a page with a swing where I'm interested in the price, but for some reason the HTTPS.get request returns the old HTML source code. Tried to set headers - did not help.
const HTTPS = require('https');
HTTPS.get('https://www.obi.ru/sadovye-kacheli/sadovye-kacheli-greengard-santorini-bordo/p/4480281', {
headers: {
'Content-Type': 'text/html',
'Cache-Control': 'private, no-cache, no-store, must-revalidate',
'Expires': '-1',
'Pragma': 'no-cache',
},
}, (resp) => {
resp.on('data', async (chunk) => {
const OUTPUT_HTML = bufferParse(chunk);
});
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question