Skip to content

Commit

Permalink
Actual fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanpdx committed May 17, 2024
1 parent fb50219 commit 6378512
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion twExtract/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ def extractStatusV2AnonLegacy(url,workaroundTokens):
return tweet['legacy']

def extractStatus(url,workaroundTokens=None):
methods=[extractStatus_syndication,extractStatusV2AnonLegacy,extractStatusV2AndroidLegacy,extractStatusV2Legacy]
methods=[extractStatus_syndication,extractStatusV2Anon,extractStatusV2Android,extractStatusV2]
for method in methods:
try:
result = method(url,workaroundTokens)
Expand Down
2 changes: 1 addition & 1 deletion twitfix.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def getTweetData(twitter_url):
rawTweetData = None
if rawTweetData is None:
try:
rawTweetData = twExtract.extractStatusV2(twitter_url,workaroundTokens=config['config']['workaroundTokens'].split(','))
rawTweetData = twExtract.extractStatus(twitter_url,workaroundTokens=config['config']['workaroundTokens'].split(','))
except:
rawTweetData = None
if rawTweetData == None or 'error' in rawTweetData:
Expand Down

0 comments on commit 6378512

Please sign in to comment.