Fix looping challenges and invalid cookies. resolves #1006 (#1010)

Co-authored-by: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com>
This commit is contained in:
21hsmwandilike2burnthing authored and GitHub committed 2023-12-15 22:11:58 +00:00
1 parent 745c69491f
commit 1c855b8af0
4 files changed
+13 -6

No files matched your search

+3
View File
@@ -294,6 +294,9 @@ def _evil_logic(req: V1RequestBase, driver: WebDriver, method: str) -> Challenge
# navigate to the page
logging.debug(f'Navigating to... {req.url}')
# Workaround for "challenge not detected" caused by the devtools window
driver.get(req.url)
driver.start_session() # required to bypass Cloudflare
if method == 'POST':
_post_request(req, driver)
else: