From 0b43a3e05a34b5ee1974ec70929a404b07f3dfa9 Mon Sep 17 00:00:00 2001 From: zImPatrick <23613354+zImPatrick@users.noreply.github.com> Date: Fri, 7 Mar 2025 20:46:55 +0100 Subject: [PATCH 1/3] fix anonymous extracting in getTweetData --- twitfix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twitfix.py b/twitfix.py index 115c0ad..bff9489 100644 --- a/twitfix.py +++ b/twitfix.py @@ -172,7 +172,7 @@ def getTweetData(twitter_url,include_txt="false",include_rtf="false"): return cachedVNF try: - rawTweetData = twExtract.extractStatusV2Anon(twitter_url) + rawTweetData = twExtract.extractStatusV2Anon(twitter_url, None) except: rawTweetData = None if rawTweetData is None: From 0e6748d86ac8cc47bd0deee9ff89389d4dd6d21f Mon Sep 17 00:00:00 2001 From: zImPatrick <23613354+zImPatrick@users.noreply.github.com> Date: Fri, 7 Mar 2025 21:07:47 +0100 Subject: [PATCH 2/3] check if workaroundTokens are None before trying to split them * the default config has them set to null, so we should check first --- twitfix.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/twitfix.py b/twitfix.py index bff9489..14d322e 100644 --- a/twitfix.py +++ b/twitfix.py @@ -177,7 +177,12 @@ def getTweetData(twitter_url,include_txt="false",include_rtf="false"): rawTweetData = None if rawTweetData is None: try: - rawTweetData = twExtract.extractStatus(twitter_url,workaroundTokens=config['config']['workaroundTokens'].split(',')) + if config['config']['workaroundTokens'] is not None: + workaroundTokens = config['config']['workaroundTokens'].split(",") + else: + workaroundTokens = None + + rawTweetData = twExtract.extractStatus(twitter_url,workaroundTokens=workaroundTokens) except: rawTweetData = None if rawTweetData == None or 'error' in rawTweetData: From f1477b2b7bcaf632fc4cece607325801b173cf96 Mon Sep 17 00:00:00 2001 From: Dylan Date: Mon, 10 Mar 2025 17:45:21 +0000 Subject: [PATCH 3/3] Update readme --- readme.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/readme.md b/readme.md index 291a4e2..f61849c 100644 --- a/readme.md +++ b/readme.md @@ -14,6 +14,8 @@ Just replace twitter.com with vxtwitter.com on the link to the tweet! `https://t You can also replace x.com links with fixvx.com +Accessing `https://vxtwitter.com/preferences` will allow you to change how you are redirected to tweets when opening them in your browser - Either by opening them on the mobile app, or opening the tweet in a [Nitter](https://github.com/zedeus/nitter) instance. + ## API If you're a nerd like me and want to use information about a tweet in your code, you can make a request to `api.vxtwitter.com` to get basic information about a tweet: `https://api.vxtwitter.com/Twitter/status/1577730467436138524`