mirror of
https://github.com/anatolykopyl/dochunt.git
synced 2026-03-26 12:54:41 +00:00
🐛 Fixed 2FA prompt
& fixed when the script knows it scraped all 1000 availible docs
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import vk_api
|
||||
import configparser
|
||||
from rich.console import Console
|
||||
from rich.prompt import Prompt
|
||||
c = Console()
|
||||
|
||||
config = configparser.ConfigParser()
|
||||
@@ -9,7 +10,7 @@ login = config['CREDENTIALS']['login']
|
||||
password = config['CREDENTIALS']['password']
|
||||
|
||||
def _2fa_handler():
|
||||
code = c.input("Enter 2FA code: ", style="italic cyan")
|
||||
code = Prompt.ask("Enter 2FA code")
|
||||
return code, True
|
||||
|
||||
def authenticate():
|
||||
|
||||
Reference in New Issue
Block a user