diff --git a/twExtract/__init__.py b/twExtract/__init__.py index 8f2c213..ddfc403 100644 --- a/twExtract/__init__.py +++ b/twExtract/__init__.py @@ -495,7 +495,7 @@ def fixTweetData(tweet): def extractStatus(url,workaroundTokens=None): # TODO: commented out methods are too slow/unreliable at the moment - methods=[extractStatusV2Anon,extractStatusV2]#,extractStatusV2Android,extractStatusV2TweetDetail] # + methods=[extractStatus_syndication,extractStatusV2]#,extractStatusV2Android,extractStatusV2TweetDetail] # for method in methods: try: result = method(url,workaroundTokens) diff --git a/twitfix.py b/twitfix.py index be90aad..da9732e 100644 --- a/twitfix.py +++ b/twitfix.py @@ -287,17 +287,17 @@ def getTweetData(twitter_url,include_txt="false",include_rtf="false"): def getUserData(twitter_url,includeFeed=False): if config['config']['workaroundTokens'] is not None: - workaroundTokens = config['config']['workaroundTokens'].split(",") - else: - workaroundTokens = None - rawUserData = twExtract.extractUser(twitter_url,workaroundTokens=workaroundTokens)) + 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=workaroundTokens)) + feed = twExtract.extractUserFeedFromId(userData['id'],workaroundTokens=workaroundTokens) apiFeed = [] for tweet in feed: apiFeed.append(getApiResponse(tweet))