2019-01-02 04:42:53 +03:00
|
|
|
from __future__ import unicode_literals
|
2018-12-20 11:59:35 -06:00
|
|
|
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
|