Web scraping 为什么要在Pypetteer上获取响应数据

Web scraping 为什么要在Pypetteer上获取响应数据,web-scraping,automation,puppeteer,pyppeteer,pyp,Web Scraping,Automation,Puppeteer,Pyppeteer,Pyp,我已经编写了python代码来请求一些网站返回XML数据 page.once('request', lambda request: asyncio.ensure_future(interception_get_request(page, request))) await page.goto(url)``` async def interception_get_request(page: Page, request: Request): response = await request.

我已经编写了python代码来请求一些网站返回XML数据

page.once('request', lambda request: asyncio.ensure_future(interception_get_request(page, request)))
await page.goto(url)```

async def interception_get_request(page: Page, request: Request):
    response = await request.continue_({'method': 'GET', 'headers': {**request.headers, 'Content-Type': 'application/x-www-form-urlencoded'}})
    await page.setRequestInterception(False)
Can i now how can i get response data