Why does headless need to be false for Puppeteer to work?
The reason it might work in UI mode but not headless is that sites who aggressively fight scraping will detect that you are running in a headless browser. Some possible workarounds: Use puppeteer-extra Found here: https://github.com/berstend/puppeteer-extra Check out their docs for how to use it. It has a couple plugins that might help in getting … Read more