diff --git a/twitter_openapi_python/pyproject.toml b/twitter_openapi_python/pyproject.toml index 53cf082..d1a1fc4 100644 --- a/twitter_openapi_python/pyproject.toml +++ b/twitter_openapi_python/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "twitter_openapi_python" -version = "0.0.13" +version = "0.0.14" description = "Twitter OpenAPI" authors = ["fa0311 "] license = "proprietary" # or "AGPL-3.0-only" diff --git a/twitter_openapi_python/setup.py b/twitter_openapi_python/setup.py index cd5ff47..0211ab3 100644 --- a/twitter_openapi_python/setup.py +++ b/twitter_openapi_python/setup.py @@ -3,7 +3,7 @@ from setuptools import find_packages, setup NAME = "twitter_openapi_python" -VERSION = "0.0.13" +VERSION = "0.0.14" PYTHON_REQUIRES = ">=3.7" REQUIRES = [ "twitter_openapi_python_generated == 0.0.9", diff --git a/twitter_openapi_python/twitter_openapi_python/client.py b/twitter_openapi_python/twitter_openapi_python/client.py index 96f9c23..b467a57 100644 --- a/twitter_openapi_python/twitter_openapi_python/client.py +++ b/twitter_openapi_python/twitter_openapi_python/client.py @@ -110,8 +110,8 @@ def get_twitter_openapi_python_client( api: twitter.ApiClient, ) -> TwitterOpenapiPythonClient: http = urllib3.PoolManager() - flag = http.request("GET", self.placeholder_url.format(hash=self.hash)).json() - return TwitterOpenapiPythonClient(api, flag) + flag = http.request("GET", self.placeholder_url.format(hash=self.hash)) + return TwitterOpenapiPythonClient(api, json.loads(flag.data)) def get_client_from_cookies( self,