Closed trvhung closed 2 years ago
I have the same question. Did you find a solution?
You must add this code before await page.goto
page.on('response', async (response) => {
if (response.url()=="https://sunat....."){
console.log('XHR response received');
console.log(await response.json());
}
});
await page.goto("http://sunat...")
We're marking this issue as unconfirmed because it has not had recent activity and we weren't able to confirm it yet. It will be closed if no further activity occurs within the next 30 days.
We are closing this issue. If the issue still persists in the latest version of Puppeteer, please reopen the issue and update the description. We will try our best to accomodate it!
Hi..I am new and I'd like to get the response of the request from twitter shown in the screenshot
The current puppeteer code is shown below. Could anybody show me how to modify it so that it will get the JSON response directly from the browser? Thanks. Here is a code as an example:
Here is data i want to get