mirror of
https://gitlab.com/jeancf/twoot.git
synced 2025-02-23 08:38:30 +00:00
Compare commits
3 Commits
b817d8942c
...
5ecc8bd634
Author | SHA1 | Date | |
---|---|---|---|
|
5ecc8bd634 | ||
|
0db62a1906 | ||
|
92a60e2fad |
@ -50,19 +50,19 @@ tweet_delay = 0
|
||||
# Default is 0 (which means unlimited)
|
||||
toot_cap = 0
|
||||
|
||||
# Replace twitter links by random alternative out of this list
|
||||
# Replace twitter.com in links by random alternative out of this list
|
||||
# List of nitter instances
|
||||
# e.g. subst_twitter = ["nitter.net", ]
|
||||
# Default is []
|
||||
subst_twitter = []
|
||||
|
||||
# Replace youtube.com link by random alternative out of this list
|
||||
# Replace youtube.com in links by random alternative out of this list
|
||||
# List of Invidious or Piped instances
|
||||
# e.g. subst_youtube = ["piped.kavin.rocks", "invidious.flokinet.to", ]
|
||||
# Default is []
|
||||
subst_youtube = []
|
||||
|
||||
# Replace reddit.com link by random alternative out of this list
|
||||
# Replace reddit.com in links by random alternative out of this list
|
||||
# List of Teddit instances
|
||||
# e.g. subst_reddit = ["teddit.net", ]
|
||||
# Default is []
|
||||
|
5
twoot.py
5
twoot.py
@ -187,7 +187,7 @@ def deredir_url(url):
|
||||
ret = None
|
||||
try:
|
||||
# Download the page
|
||||
ret = requests.head(url, headers=headers, timeout=5)
|
||||
ret = requests.head(url, headers=headers, allow_redirects=True, timeout=5)
|
||||
except:
|
||||
# If anything goes wrong keep the URL intact
|
||||
return url
|
||||
@ -213,7 +213,8 @@ def _remove_trackers_query(query_str):
|
||||
# tags by Facebook
|
||||
params_to_remove = {
|
||||
"gclid", "_ga", "gclsrc", "dclid",
|
||||
"utm_source", "utm_medium", "utm_campaign", "utm_term", "utm_content", "utm_cid", "utm_reader", "utm_name", "utm_referrer", "utm_social", "utm_social-type",
|
||||
"utm_source", "utm_medium", "utm_campaign", "utm_term", "utm_content", "utm_cid",
|
||||
"utm_reader", "utm_name", "utm_referrer", "utm_social", "utm_social-type", "utm_brand"
|
||||
"mkt_tok",
|
||||
"campaign_name", "ad_set_name", "campaign_id", "ad_set_id",
|
||||
"fbclid", "campaign_name", "ad_set_name", "ad_set_id", "media", "interest_group_name", "ad_set_id"
|
||||
|
Loading…
x
Reference in New Issue
Block a user