Answer the question
In order to leave comments, you need to log in
How to make requests to the VK API Python and how to get the necessary information from json?
I have code
from flask import Flask, request, json
import vk
import numpy as np
import random
token = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
confirmation_token = "xxxxxx"
session = vk.Session(access_token=token)
vk_api = vk.API(session, v='5.103')
def msgSend(msg, user_id):
if msg == 'новый пост' or msg == 'покажи новый пост':
r = vk_api.wall.get(domain="librarykeeper",offset=1,count=1,filter="owner")
t = r["response"][0]["items"][0]["id"]
return t
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question