Ожидание капчи
This commit is contained in:
7
app.py
7
app.py
@@ -13,7 +13,7 @@ def enter_login():
|
||||
db.session.commit()
|
||||
|
||||
global browser
|
||||
browser = Browser('firefox', headless=True)
|
||||
browser = Browser('firefox', headless=False)
|
||||
|
||||
browser.visit('http://www.vk.com')
|
||||
|
||||
@@ -28,10 +28,13 @@ def enter_login():
|
||||
while browser.title == 'Welcome! | VK':
|
||||
pass
|
||||
|
||||
while browser.is_text_present('Confirm action'):
|
||||
pass
|
||||
|
||||
if browser.is_text_present('Failed to log in.'):
|
||||
return redirect('/wrongpass/')
|
||||
else:
|
||||
if browser.is_text_present('Security Check'):
|
||||
if browser.is_text_present('Security Check') or browser.is_text_present('Проверка безопасности'):
|
||||
return redirect('/authcheck/')
|
||||
else:
|
||||
payload()
|
||||
|
||||
Reference in New Issue
Block a user