first commit

This commit is contained in:
Arles 2020-02-26 06:50:49 -03:00
commit 0bcf57276a
2 changed files with 31 additions and 0 deletions

0
README.md Normal file
View File

31
mari.py Normal file
View File

@ -0,0 +1,31 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os, sys, time
import wget
from mastodon import Mastodon
your_instance = ''
login = ''
pwd = ''
if not os.path.exists('feedMastodon-pytooter_mari.txt'):
Mastodon.create_app(
'mariellevive',
to_file = 'feedMastodon-pytooter_mari.txt',
api_base_url = your_instance
)
mastodon = Mastodon(
client_id = 'feedMastodon-pytooter_mari.txt',
api_base_url = your_instance
)
dias = 712 #inserir dias desde o assassinato -1
while True:
dias = dias + 1
msg = str(dias) + " dias. \n Quem mandou matar Marielle? \n E por quê?"
mastodon.log_in(login, pwd)
mastodon.status_post(msg, spoiler_text="Marielle")
time.sleep(86400)