💄 Made a pretty ui

This commit is contained in:
2021-04-06 15:18:40 +03:00
parent cf7797419c
commit 5bf8fd6543
3 changed files with 50 additions and 16 deletions

View File

@@ -15,5 +15,6 @@ def _2fa_handler():
def authenticate():
vk_session = vk_api.VkApi(login=login, password=password, auth_handler=_2fa_handler)
vk_session.auth()
c.print('Authentication success!', style='blue')
return vk_session.get_api()

8
utils/savePhoto.py Normal file
View File

@@ -0,0 +1,8 @@
from rich.console import Console
c = Console()
def save_photo(url):
f = open("output.txt", "a", encoding='utf-8')
f.write(url)
f.close()