mirror of
https://github.com/bellingcat/vk-url-scraper.git
synced 2026-06-13 05:48:37 +03:00
captch regex fix
This commit is contained in:
@@ -39,7 +39,7 @@ def captcha_handler(captcha):
|
|||||||
print(f"got response {r.text=}", flush=True)
|
print(f"got response {r.text=}", flush=True)
|
||||||
if key := regex_string.search(r.text):
|
if key := regex_string.search(r.text):
|
||||||
print(f"got captcha result {key=}", flush=True)
|
print(f"got captcha result {key=}", flush=True)
|
||||||
return captcha.try_again(key[0])
|
return captcha.try_again(key[1])
|
||||||
print(f"sleeping {wait} seconds", flush=True)
|
print(f"sleeping {wait} seconds", flush=True)
|
||||||
time.sleep(wait)
|
time.sleep(wait)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user