From 44465fdf528606930f133ddd702482d31dd7cf87 Mon Sep 17 00:00:00 2001 From: Homer S Date: Sun, 10 Feb 2019 17:46:42 +0100 Subject: [PATCH] =?UTF-8?q?=E2=80=9EREADME.md=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Minimal corrections regarding markdown syntax --- README.md | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c888133..2864e79 100644 --- a/README.md +++ b/README.md @@ -3,20 +3,30 @@ This simple python3 script's purpose is just to copy a number of twitter accounts' statuses to corresponding Mastodon accounts. ## Prerequisites To use #mastobot you need to install tweepy, Mastodon.py and wget. To do so you could e.g. just use pip3 by entering commandline: -``` sudo pip3 install tweepy ``` + +`sudo pip3 install tweepy` + and vice versa. -Also, you have of course to register the goal accounts on Mastodon and to adjust both the mastodon.py file's _setting_path_ pointing to the absolute path to the settings.json file and + +Also, you have of course to register the goal accounts on Mastodon and to adjust both the mastodon.py file's _setting\_path_ pointing to the absolute path to the settings.json file and the setting.json file itself regarding to your needs. Above this you need a twitter developer account to receive consumer and access keypairs. For a HowTo please take a look at the tweepy documentation. ## Usage -After having filled in every information into the settings.json file you could use e.g. ```crontab -e``` on unixoid systems from shell and add a line like -```*/15 * * * * python3 /home/username/mastobot/mastobot.py >> /home/username/mastobot.log``` which lets the script be triggered every 15 minutes. +After having filled in every information into the settings.json file you could use e.g. `crontab -e` on unixoid systems from shell and add a line like + +`*/15 * * * * python3 /home/username/mastobot/mastobot.py >> /home/username/mastobot.log` + +which lets the script be triggered every 15 minutes. + By default the script will be limited to 25 tweets per account for this period which should definitely be enough for a human account I think. ## Warning Before you start flooding your Mastodon instance accidently with hundreds of repeating posts, please test your adjustments by hitting -```python3 mastodon.py``` and have a look on the output. If the script breaks at any time the 'last_id'-parameters won't be updated and next time it will post exactly the same statuses again and again! + +`python3 mastodon.py` + +and have a look on the output. If the script breaks at any time the 'last_id'-parameters won't be updated and next time it will post exactly the same statuses again and again! So make sure that the script runs successfully at least once before you fire this gun! ## Unlock script