From 0bcf57276a2c0ceb78ec5fac7c0c3e32b3ff85ca Mon Sep 17 00:00:00 2001 From: Arles Date: Wed, 26 Feb 2020 06:50:49 -0300 Subject: [PATCH] first commit --- README.md | 0 mari.py | 31 +++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 README.md create mode 100644 mari.py diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/mari.py b/mari.py new file mode 100644 index 0000000..653fb1d --- /dev/null +++ b/mari.py @@ -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) \ No newline at end of file