We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7dec03d commit b5f6a56Copy full SHA for b5f6a56
1 file changed
twitter_openapi_python/twitter_openapi_python/client.py
@@ -110,8 +110,8 @@ def get_twitter_openapi_python_client(
110
api: twitter.ApiClient,
111
) -> TwitterOpenapiPythonClient:
112
http = urllib3.PoolManager()
113
- flag = http.request("GET", self.placeholder_url.format(hash=self.hash)).json()
114
- return TwitterOpenapiPythonClient(api, flag)
+ flag = http.request("GET", self.placeholder_url.format(hash=self.hash))
+ return TwitterOpenapiPythonClient(api, json.loads(flag.data))
115
116
def get_client_from_cookies(
117
self,
0 commit comments