Answer the question
In order to leave comments, you need to log in
How to send a message with a VKontakte tag?
Hey guys! Already tired of trying to insert a tag to the message - it (the message) does not see it in the published messages on the community wall ... Here is the code:
f = open('c:\\zit.html','r',encoding='utf8')
r = f.read().split('<p>')
message = r[random.randint(0, len(r)-1)]
print(message)
message=message + "<br>"
tag=input("Теги: ")
while tag!="":
message=message+"#"+tag+" "
tag=input("Теги: ")
print(message)
url = "https://api.vkontakte.ru/method/" \
"wall.post?&access_token=" + access_token +\
"&owner_id=-" + domain +\
"&message=" + message.encode("utf8")
page = requests.get(url)
print(page.text)
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