update reqs
This commit is contained in:
parent
9c2928fa4e
commit
382135ac1a
3
Pipfile
3
Pipfile
@ -21,7 +21,7 @@ django-bootstrap4 = "*"
|
|||||||
daphne = "*"
|
daphne = "*"
|
||||||
markovify = "*"
|
markovify = "*"
|
||||||
python-anticaptcha = "*"
|
python-anticaptcha = "*"
|
||||||
vk-api = "*"
|
vk-api = "11.9.7"
|
||||||
sentry-sdk = "*"
|
sentry-sdk = "*"
|
||||||
python-twitter = "*"
|
python-twitter = "*"
|
||||||
pytelegrambotapi = "*"
|
pytelegrambotapi = "*"
|
||||||
@ -40,6 +40,7 @@ django-picklefield = "*"
|
|||||||
boto3 = "*"
|
boto3 = "*"
|
||||||
filetype = "*"
|
filetype = "*"
|
||||||
qrtools = "*"
|
qrtools = "*"
|
||||||
|
vkwave = "*"
|
||||||
|
|
||||||
[dev-packages]
|
[dev-packages]
|
||||||
|
|
||||||
|
1308
Pipfile.lock
generated
1308
Pipfile.lock
generated
File diff suppressed because it is too large
Load Diff
@ -4,6 +4,7 @@ from djconfig import config
|
|||||||
from telegram import Bot, InputMediaPhoto
|
from telegram import Bot, InputMediaPhoto
|
||||||
from vk_api import VkApi
|
from vk_api import VkApi
|
||||||
from vk_api.audio import VkAudio
|
from vk_api.audio import VkAudio
|
||||||
|
import vkwave
|
||||||
|
|
||||||
from feeds.models import FeedModuleConfig
|
from feeds.models import FeedModuleConfig
|
||||||
from feeds.modules.utils import get_vk_photo, get_vk_audio
|
from feeds.modules.utils import get_vk_photo, get_vk_audio
|
||||||
@ -26,7 +27,7 @@ class VKFeedModuleConfig(FeedModuleConfig):
|
|||||||
vk_session = VkApi(login=config.vk_username, password=config.vk_password, config=DatabaseConfig,
|
vk_session = VkApi(login=config.vk_username, password=config.vk_password, config=DatabaseConfig,
|
||||||
api_version='5.60', captcha_handler=captcha_handler)
|
api_version='5.60', captcha_handler=captcha_handler)
|
||||||
vk_session.auth()
|
vk_session.auth()
|
||||||
vk_audio = VkAudio(vk_session)
|
# vk_audio = VkAudio(vk_session)
|
||||||
vk = vk_session.get_api()
|
vk = vk_session.get_api()
|
||||||
wall_data = vk.wall.get(owner_id=self.owner_id)
|
wall_data = vk.wall.get(owner_id=self.owner_id)
|
||||||
for post in reversed(wall_data['items']):
|
for post in reversed(wall_data['items']):
|
||||||
|
Loading…
Reference in New Issue
Block a user