|
|
@ -36,13 +36,18 @@ with open('token.txt', 'r') as token:
|
|
|
|
|
|
|
|
|
|
|
|
for status in my_statuses:
|
|
|
|
for status in my_statuses:
|
|
|
|
if status['visibility'] == 'direct': # filter only direct msgs
|
|
|
|
if status['visibility'] == 'direct': # filter only direct msgs
|
|
|
|
pprint(status)
|
|
|
|
|
|
|
|
# pprint(status['mentions'])
|
|
|
|
avatar = (status['account']['avatar'])
|
|
|
|
# print(status['content'])
|
|
|
|
name = (status['account']['display_name'])
|
|
|
|
# print(status['id'])
|
|
|
|
bot = (status['account']['bot'])
|
|
|
|
# print(status['created_at'])
|
|
|
|
content = (status['content'])
|
|
|
|
#
|
|
|
|
|
|
|
|
# text_file.write("Avatar:" + "\n" + str(bot) + "\n" + "\n")
|
|
|
|
pprint("Avatar:" + "\n" + str(avatar) + "\n" + "\n")
|
|
|
|
# text_file.write("Content:" + "\n" + str(content) + "\n" + "\n" + "\n")
|
|
|
|
pprint("Name:" + "\n" + str(name) + "\n" + "\n")
|
|
|
|
|
|
|
|
pprint("Bot:" + "\n" + str(bot) + "\n" + "\n")
|
|
|
|
#text_file.write("Impossible to print image"+"\n"+"\n")
|
|
|
|
pprint("Content:" + "\n" + str(content) + "\n" + "\n")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
text_file.write("Avatar:" + "\n" + str(avatar) + "\n" + "\n")
|
|
|
|
|
|
|
|
text_file.write("Name:" + "\n" + str(name) + "\n" + "\n")
|
|
|
|
|
|
|
|
text_file.write("Bot:" + "\n" + str(bot) + "\n" + "\n")
|
|
|
|
|
|
|
|
text_file.write("Content:" + "\n" + str(content) + "\n" + "\n" + "\n")
|
|
|
|