Apify Discord Mirror

Updated 5 months ago

Crawler only working in headed mode.

At a glance

The community member is using a Puppeteer Crawler that works well in headed mode, but encounters 403 errors when running in headless mode. They tried using xvfb but it did not fix the issue. The community members suggest trying different proxy groups, modifying headers, and using Playwright with Firefox as it may be more stealthy. One community member mentions that they were able to fix the issue temporarily using xvfb, but another community member states that they were unable to fix it with xvfb and instead found success using Playwright and Firefox.

I have a Puppeteer Crawler that works almost flawless in headed mode, but if I go headless all the requests are getting 403 errors.
I was thinking that xvfb should fix this but unfortunately it doesn't. Any other ideas ?
1
A
N
c
10 comments
Please share run, I guess its site specific, they using blocking of some kind
hipercor.es/supermercado
did you find any solution ?

Can't find your actor via "hipercor.es/supermercado"

Some suggestions:
  1. try to test different proxy groups
  2. try to modify (change some) headers (as in original requests in the browser)
  3. Try to use Playwright + firefox. It's more stealthy (btw, why are You using pptr?)
  1. fixed it, I fixed it for a short time with xvfb
  2. will try
  3. will also try, I'm using pptr because I find it easier to code
  1. Why do You think so?)
I would say, that Playwright is improved pptr. And for sure it's easier to bypass anti-bot protection with Playwright.
will try with that one too
coded playwright in the past but found easier the workflow in puppeteer :))
how did you fix it with XVFB ?
Didn’t fix it, it worked with playwright and firefox
Add a reply
Sign up and join the conversation on Discord