add force retry if first try fails, in cookie stealing
This commit is contained in:
23
lib/login.py
23
lib/login.py
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user