first commit
This commit is contained in:
commit
0bcf57276a
|
@ -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)
|
Loading…
Reference in New Issue