1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 10:42:34 +01:00

[twitter] update GraphQL endpoints

This commit is contained in:
Mike Fährmann 2021-02-20 02:09:17 +01:00
parent e1a12761d7
commit 5542a11c46
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -578,7 +578,7 @@ class TwitterAPI():
return self._pagination(endpoint, params)
def list_members(self, list_id):
endpoint = "/graphql/3pV4YlpljXUTFAa1jVNWQw/ListMembers"
endpoint = "/graphql/tA7h9hy4U0Yc9COfIOh3qQ/ListMembers"
variables = {
"listId": list_id,
"count" : 20,
@ -588,7 +588,7 @@ class TwitterAPI():
return self._pagination_members(endpoint, variables)
def list_by_rest_id(self, list_id):
endpoint = "/graphql/EhaI2uiCBJI97e28GN8WjQ/ListByRestId"
endpoint = "/graphql/18MAHTcDU-TdJSjWWmoH7w/ListByRestId"
params = {"variables": '{"listId":"' + list_id + '"'
',"withUserResult":false}'}
try:
@ -597,7 +597,7 @@ class TwitterAPI():
raise exception.NotFoundError("list")
def user_by_screen_name(self, screen_name):
endpoint = "/graphql/ZRnOhhXPwue_JGILb9TNug/UserByScreenName"
endpoint = "/graphql/hc-pka9A7gyS3xODIafnrQ/UserByScreenName"
params = {"variables": '{"screen_name":"' + screen_name + '"'
',"withHighlightedLabel":true}'}
try: