Python
12
Вклад в тег
import vk_api
import datetime
import time
vk = vk_api.VkApi(token="токен")
api = vk.get_api()
group_id = -0
my_id = 0
while True:
text = api.wall.get(owner_id=group_id, count=1)['items'][0]['text']
api.wall.post(owner_id=my_id, from_group=1, message=text)
time.sleep(1000)
import os
currentPath = os.path.dirname(__file__)
abc = os.path.join(currentPath, "pyti")
Homework1 = open('Homework.txt','r')
Homework = Homework1.read()
Homework1.close()