add force retry if first try fails, in cookie stealing

This commit is contained in:
2024-08-23 13:01:20 +02:00
parent c35f43ce8a
commit fa98c36096
5 changed files with 16 additions and 22 deletions

View File

@@ -43,23 +43,14 @@ def login(entry):
#somehow getting the cookie maype?
def solveCaptcha(session,resp):
found = 0
if "captcha" or "Enable JavaScript" in resp :
#soup = BeautifulSoup(resp,"html.parser")
#result = soup.find("iframe")
#while found==0:
# if "captcha" in resp:#result:
print("captcha link!! found:")
found=1
#else:
# result.find_next()
print("exit loop")
print("response:",resp)
#if found:
#print("captchaurl:", result["src"])
#x = input("continue")
#else:
# print("did not recognise a captcha")
if "captcha" or "Enable JavaScript" in resp :
print("captcha link!! found:")
return 1
else:
return 0
def checkBlockers(session,resp):
print("response from login attempt",resp)
if resp: