From 2c4d6bd7e00c621f707b099e471b13f448666128 Mon Sep 17 00:00:00 2001 From: jeancf Date: Wed, 23 Nov 2022 21:46:05 +0100 Subject: [PATCH] Last updates before release --- CHANGELOG.md | 10 ++++++++-- README.md | 9 +++++---- twoot.py | 2 +- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c7bf795..0e1c48e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,14 @@ -**XX NOV 2022** VERSION 2.4 Added command-line option (`-u`) to +**23 NOV 2022** VERSION 2.5 Added command-line option (`-l`) to remove +redirection from links included in tweets. Obfuscated links are replaced +by the URL that the resource is directly downloaded from. Also improved +tracker removal by cleaning URL fragments as well (contrib: mathdatech, +thanks!). + +**22 NOV 2022** VERSION 2.4 Added command-line option (`-u`) to remove tracking parameters from URLs included in tweets. A tracking URL is a normal URL with parameters attached to it. These parameters are used by marketing companies to identify the source of a click and the effectiveness -of a communication campaign. +of a communication campaign (contrib: mathdatech, thanks!). **15 NOV 2022** VERSION 2.3 Added command-line option (`-s`) to skip retweets. With this option, retweets will be ignored and not posted diff --git a/README.md b/README.md index 304f428..6c5a027 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,12 @@ # Twoot -Twoot is a python script that mirrors tweets from a twitter account to a Mastodon account. -It is simple to set-up on a local machine, configurable and feature-rich. +**Twoot is a python script that mirrors tweets from a twitter account to a Mastodon account. +It is simple to set-up on a local machine, configurable and feature-rich.** -**UPDATE XX NOV 2022** VERSION 2.5 Added command-line option (`-l`) to remove redirection +**UPDATE 23 NOV 2022** VERSION 2.5 Added command-line option (`-l`) to remove redirection from links included in tweets. Obfuscated links are replaced by the URL that the resource -is directly downloaded from. +is directly downloaded from. Also improved tracker removal by cleaning URL fragments as well +(contrib: mathdatech, thanks!). > Previous updates can be found in CHANGELOG. diff --git a/twoot.py b/twoot.py index 03892a5..618af8e 100755 --- a/twoot.py +++ b/twoot.py @@ -40,7 +40,7 @@ MAX_REC_COUNT = 50 # Set the desired verbosity of logging # One of logging.DEBUG, logging.INFO, logging.WARNING, logging.ERROR, logging.CRITICAL -LOGGING_LEVEL = logging.DEBUG +LOGGING_LEVEL = logging.INFO # How many seconds to wait before giving up on a download (except video download) HTTPS_REQ_TIMEOUT = 10