mirror of
https://github.com/bellingcat/snscrape.git
synced 2026-06-11 20:08:29 +03:00
@@ -790,7 +790,7 @@ class TwitterUserScraper(TwitterSearchScraper):
|
||||
endpoint = 'https://twitter.com/i/api/graphql/I5nvpI91ljifos1Y3Lltyg/UserByRestId'
|
||||
variables = {fieldName: str(self._user), 'withSafetyModeUserFields': True, 'withSuperFollowsUserFields': True}
|
||||
obj = self._get_api_data(endpoint, _TwitterAPIType.GRAPHQL, params = variables)
|
||||
if not obj['data']:
|
||||
if not obj['data'] or obj['data']['user']['result']['__typename'] == 'UserUnavailable':
|
||||
return None
|
||||
user = obj['data']['user']['result']
|
||||
rawDescription = user['legacy']['description']
|
||||
|
||||
Reference in New Issue
Block a user