'Blank page when using puppeteer on wordpress site
I am getting a blank page when I am trying to get this page. It's working for other WordPress websites though. I tried different option but none works.
import asyncio
import pyppeteer
import os
async def main():
print("in main")
browser = await pyppeteer.launch()
page = await browser.newPage()
await page.goto('https://mindcet.org/')
await page.screenshot({'path': 'mindcet.png'})
# await browser.close()
asyncio.get_event_loop().run_until_complete(main())
Solution 1:[1]
Using the puppeteer stealth plugin I was able to solve the problem.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Bilal Shah |