10 lines
219 B
Python
10 lines
219 B
Python
from __future__ import unicode_literals
|
|
import os
|
|
from vk_api import VkApi
|
|
|
|
def get_vk():
|
|
login = os.environ['LOGIN']
|
|
password = os.environ['PASSWORD']
|
|
vk = VkApi(login, password)
|
|
vk.auth(token_only=True)
|
|
return vk |