Skip to content

Commit b5f6a56

Browse files
committed
support urllib3 v1.x
Signed-off-by: ふぁ <yuki@yuki0311.com>
1 parent 7dec03d commit b5f6a56

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • twitter_openapi_python/twitter_openapi_python

twitter_openapi_python/twitter_openapi_python/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ def get_twitter_openapi_python_client(
110110
api: twitter.ApiClient,
111111
) -> TwitterOpenapiPythonClient:
112112
http = urllib3.PoolManager()
113-
flag = http.request("GET", self.placeholder_url.format(hash=self.hash)).json()
114-
return TwitterOpenapiPythonClient(api, flag)
113+
flag = http.request("GET", self.placeholder_url.format(hash=self.hash))
114+
return TwitterOpenapiPythonClient(api, json.loads(flag.data))
115115

116116
def get_client_from_cookies(
117117
self,

0 commit comments

Comments
 (0)