counter = 0; page.on('response', async (response) => { const matches = /.*\.(jpg|png|svg|gif|webp)$/.exec(response.url()); if (matches && (matches.length === 2)) { const extension = matches[1]; const buffer = await response.buffer(); fs.writeFileSync(`a-${counter}.${extension}`, buffer, 'base64'); counter += 1; } });
I have almost all converted, but when it comes to this I cannot convert anymore
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)