From a2c9deb2505ea6b19bf5d2ba820dd8e86de97ddd Mon Sep 17 00:00:00 2001 From: jeancf Date: Thu, 17 Nov 2022 20:53:03 +0100 Subject: [PATCH] Removed duplicate tracker tags and added 'xtor' --- twoot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/twoot.py b/twoot.py index 6df6202..b73f78c 100644 --- a/twoot.py +++ b/twoot.py @@ -80,7 +80,8 @@ def _remove_tracker_params(query_str): "utm_source", "utm_medium", "utm_campaign", "utm_term", "utm_content", "mkt_tok", "campaign_name", "ad_set_name", "campaign_id", "ad_set_id", - "campaign_name", "ad_set_name", "ad_set_id", "media", "interest_group_name", "ad_set_id" + "media", "interest_group_name", + "xtor" ] query_to_clean = dict(parse_qsl(query_str, keep_blank_values=True)) query_cleaned = [(k, v) for k, v in query_to_clean.items() if not k in params_to_remove]