File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ def login():
99 if Path ("cookie.json" ).exists ():
1010 with open ("cookie.json" , "r" ) as f :
1111 cookies_dict = json .load (f )
12+
13+ if isinstance (cookies_dict , list ):
14+ cookies_dict = {cookie ['name' ]: cookie ['value' ] for cookie in cookies_dict }
1215 cookies = RequestsCookieJar ()
1316 for key , value in cookies_dict .items ():
1417 cookies .set (key , value )
Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " twitter_openapi_python"
3- version = " 0.0.40 "
3+ version = " 0.0.41 "
44description = " Twitter OpenAPI"
55authors = [" fa0311 <yuki@yuki0311.com>" ]
66license = " proprietary" # or "AGPL-3.0-only"
Original file line number Diff line number Diff line change 55from setuptools import find_packages , setup
66
77NAME = "twitter_openapi_python"
8- VERSION = "0.0.40 "
8+ VERSION = "0.0.41 "
99PYTHON_REQUIRES = ">=3.7"
1010REQUIRES = [
1111 "twitter_openapi_python_generated == 0.0.33" ,
Original file line number Diff line number Diff line change 11pip install wheel twine
2- Remove-Item twitter_openapi_python_generated .egg- info/*
2+ Remove-Item twitter_openapi_python .egg- info/*
33Remove-Item dist/*
44python setup.py sdist
55python setup.py bdist_wheel
Original file line number Diff line number Diff line change @@ -54,10 +54,10 @@ def get_user_list_api(self) -> UserListApiUtils:
5454 return UserListApiUtils (twitter .UserListApi (self .api ), self .placeholder , self .ct )
5555
5656 def get_v11_get_api (self ) -> V11GetApiUtils :
57- return V11GetApiUtils (twitter .V11GetApi (self .api ), self .placeholder , self . ct )
57+ return V11GetApiUtils (twitter .V11GetApi (self .api ), self .placeholder )
5858
5959 def get_v11_post_api (self ) -> V11PostApiUtils :
60- return V11PostApiUtils (twitter .V11PostApi (self .api ), self .placeholder , self . ct )
60+ return V11PostApiUtils (twitter .V11PostApi (self .api ), self .placeholder )
6161
6262
6363class TwitterOpenapiPython :
You can’t perform that action at this time.
0 commit comments