From 764e30be02fe04904c4b0eb7d574cb69b0a79e5c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 27 Jan 2025 01:24:25 +0000 Subject: [PATCH 1/2] Bump boto3 from 1.35.18 to 1.36.6 Bumps [boto3](https://github.com/boto/boto3) from 1.35.18 to 1.36.6. - [Release notes](https://github.com/boto/boto3/releases) - [Commits](https://github.com/boto/boto3/compare/1.35.18...1.36.6) --- updated-dependencies: - dependency-name: boto3 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index c2a7318..15f2d11 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ pymongo==4.8.0 -boto3==1.35.18 +boto3==1.36.6 requests==2.32.3 Pillow==10.4.0 Flask==2.2.3 From 7791b56419a1b44dc0adb77f828b0c7b5afdc736 Mon Sep 17 00:00:00 2001 From: xnand-dot-xyz <224628274+xnand-dot-xyz@users.noreply.github.com> Date: Fri, 12 Sep 2025 15:35:40 +0000 Subject: [PATCH 2/2] check if workaroundTokens is None before splitting --- twitfix.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/twitfix.py b/twitfix.py index 5fb764c..be90aad 100644 --- a/twitfix.py +++ b/twitfix.py @@ -286,14 +286,18 @@ def getTweetData(twitter_url,include_txt="false",include_rtf="false"): return tweetData def getUserData(twitter_url,includeFeed=False): - rawUserData = twExtract.extractUser(twitter_url,workaroundTokens=config['config']['workaroundTokens'].split(',')) + if config['config']['workaroundTokens'] is not None: + workaroundTokens = config['config']['workaroundTokens'].split(",") + else: + workaroundTokens = None + rawUserData = twExtract.extractUser(twitter_url,workaroundTokens=workaroundTokens)) userData = getApiUserResponse(rawUserData) if includeFeed: if userData['protected']: userData['latest_tweets']=[] else: - feed = twExtract.extractUserFeedFromId(userData['id'],workaroundTokens=config['config']['workaroundTokens'].split(',')) + feed = twExtract.extractUserFeedFromId(userData['id'],workaroundTokens=workaroundTokens)) apiFeed = [] for tweet in feed: apiFeed.append(getApiResponse(tweet))