@888999000

Как сделать меняющийся текст в статусе вк?

Мне надо сделать меняющийся каждые 30 секунд текст в статусе с помощью vp api. Видел как сделать статус с количеством друзей онлайн и текущем времени, но мне надо сделать чтобы это был текст
Текст=("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?")
  • Вопрос задан
  • 198 просмотров
Пригласить эксперта
Ответы на вопрос 1
hottabxp
@hottabxp
Миллиардер. Честно, 100 пистонов!
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)
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы