Commit bfd28fc
committed
cloud_browser: add solve_captcha kwarg to BrowserConfig + cloud_browser_unblock
Arms Scrapium's built-in captcha detector and solver on the first page
attach. Turnstile, DataDome slider, reCAPTCHA, GeeTest, PerimeterX
hold, and puzzle captchas are handled automatically — no extra CDP
calls from the client. Billed per solve; failures cost nothing.
BrowserConfig wires it through __init__, websocket_url (appends
solve_captcha=true to the query string), to_dict, and from_dict.
cloud_browser_unblock sends solve_captcha at the top level of the
JSON body so the post-unblock session arms Antibot on connect.1 parent 0887f52 commit bfd28fc
2 files changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
86 | 93 | | |
87 | 94 | | |
88 | 95 | | |
| |||
153 | 160 | | |
154 | 161 | | |
155 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
156 | 166 | | |
157 | 167 | | |
158 | 168 | | |
| |||
180 | 190 | | |
181 | 191 | | |
182 | 192 | | |
| 193 | + | |
183 | 194 | | |
184 | 195 | | |
185 | 196 | | |
| |||
215 | 226 | | |
216 | 227 | | |
217 | 228 | | |
| 229 | + | |
218 | 230 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1631 | 1631 | | |
1632 | 1632 | | |
1633 | 1633 | | |
| 1634 | + | |
1634 | 1635 | | |
1635 | 1636 | | |
1636 | 1637 | | |
| |||
1679 | 1680 | | |
1680 | 1681 | | |
1681 | 1682 | | |
| 1683 | + | |
| 1684 | + | |
| 1685 | + | |
1682 | 1686 | | |
1683 | 1687 | | |
1684 | 1688 | | |
| |||
0 commit comments