Skip to content
Discussion options

You must be logged in to vote

UC Mode doesn't really support headless mode anymore because UC Mode uses PyAutoGUI for lots of things, which doesn't work with a headless browser. (You don't need headless mode on Linux anymore because of the special virtual display that's included.)

Instead of using headless mode on Linux, use xvfb=True to activate the virtual display.

If you encounter a CF CAPTCHA, you'll need to use sb.uc_gui_click_captcha().

If you run your script with --debug on the command-line, it prints out the coordinates clicked via sb.uc_gui_click_captcha(). With those coordinates, you can call sb.uc_gui_click_x_y(x, y) from a disconnected state (discussed in the UC Mode docs), which avoids an extra page refre…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by mdmintz
Comment options

You must be logged in to vote
1 reply
@mdmintz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants