Answer the question
In order to leave comments, you need to log in
How to make changing text in VK status?
I need to make the text in the status change every 30 seconds using the vp api. I saw how to make a status with the number of friends online and the current time, but I need to make it a text
Text=("Ain't nobody ever told you how I love you","Nobody ever told you how I feel about you"," Okay, I admit I wanna fuck you","But it doesn't change the way I feel about you","I been by myself for a long time","I just wish that I could know if I was on your mind ","Runnin' out of time","I just wish that I could know if you were by my side","On the day I die, would you even cry?","If I end my life, would you hold me tight then?")
Answer the question
In order to leave comments, you need to log in
import vk_api
import time
texts = ["Ain't nobody ever told you how I love you",
"Nobody ever told you how I feel about you",
"Okay, I admit I wanna fuck you",
"But it doesn't change the way I feel about you",
"I been by myself for a long time",
"I just wish that I could know if I was on your mind",
"Runnin' out of time",
"I just wish that I could know if you were by my side",
"On the day I die, would you even cry?",
"If I end my life, would you hold me tight then?"]
vk_session = vk_api.VkApi('tel', 'password')
vk_session.auth()
vk = vk_session.get_api()
for text in texts:
vk.status.set(text=text)
time.sleep(4)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question