From 3c7693fe66bbf9c3b3e1b849bc54e4a7888bd9de Mon Sep 17 00:00:00 2001 From: jeancf Date: Sat, 19 Dec 2020 10:30:19 +0100 Subject: [PATCH] Updated README Improved decimal format in log --- README.md | 14 +++++++++----- twoot.py | 3 ++- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 19f21da..674c28f 100644 --- a/README.md +++ b/README.md @@ -3,11 +3,10 @@ Twoot is a python script that extracts tweets from a twitter feed and reposts them as toots on a Mastodon account. -I started twoot when [tootbot](https://github.com/cquest/tootbot) -stopped working. Tootbot relies on rss feeds from https://twitrss.me -that broke when Twitter refreshed their web UI in July 2019. - -Instead twoot is self contained and handles all the processing. +**UPDATE 19 DEC 2020** VERSION 2.0 Twitter's *no-javascript* version +has been retired. Twoot has been rewritten to get content from +[nitter.net](https://nitter.net) which is a javascript-free mirror of +twitter. As a bonus (or a curse?) twoot now also supports animated GIFs. **UPDATE 05 APR 2020** VERSION 1.0. Twoot can now optionally download videos from Twitter and upload them on Mastodon. @@ -91,3 +90,8 @@ ago: ``` 1-59/15 * * * * /path/to/twoot.py -t SuperDuperBot -i botsin.space -m superduperbot -p my_Sup3r-S4f3*pw -a 5 -d 15 ``` + +# Background +I started twoot when [tootbot](https://github.com/cquest/tootbot) +stopped working. Tootbot relies on rss feeds from https://twitrss.me +that broke when Twitter refreshed their web UI in July 2019. \ No newline at end of file diff --git a/twoot.py b/twoot.py index dbc32f2..bf9157d 100755 --- a/twoot.py +++ b/twoot.py @@ -546,8 +546,9 @@ def main(argv): except FileNotFoundError: # The directory does not exist pass - logging.info('Run time : ' + str(time.time() - start_time) + ' seconds') + logging.info('Run time : %2.1f seconds', str(time.time() - start_time)) logging.info('_____________________________________________________________') + if __name__ == "__main__": main(sys.argv)