Closed yanxiang-wang closed 1 year ago
Sorry, I didn't see the notice that require "headless=False"
Sorry, I didn't see the notice that require
"headless=False"
About headless: https://github.com/vvanglro/cf-clearance#warning
The page.goto
method defaults to a 30s timeout. My guess is your network problem.
I borrow some codes from the Dockerfile. And I found when in
headless
mode, there is alwayTimeout 30000ms exceeded.
errors. And then, I tried withxvfb-run python xx.py
and keepheadless=False
, it works sometimes, which is not stable.Also, I tried the code in my Mac-Air M1. The
headless=False
works very good. But after I changed toheadless
, the whole program stopped and showTimeout 30000ms exceeded.
errors.