twitter-openapi-python 0.0.45__py3-none-any.whl → 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -61,7 +61,7 @@ class TwitterOpenapiPythonClient:
61
61
 
62
62
 
63
63
  class TwitterOpenapiPython:
64
- hash: str = "fcff46067af750856c680fae1be775a3d67dea09"
64
+ hash: str = "103dca20cc540be8dc8291e6f573c3d48ba7af3e"
65
65
  placeholder_url = "https://raw.githubusercontent.com/fa0311/twitter-openapi/{hash}/src/config/placeholder.json"
66
66
  header = "https://raw.githubusercontent.com/fa0311/latest-user-agent/refs/heads/main/header.json"
67
67
  access_token: str = (
@@ -1,4 +1,4 @@
1
- from typing import Any, Generic, List, Optional, TypeVar
1
+ from typing import Generic, List, Optional, TypeVar
2
2
 
3
3
  # from twitter_openapi_python_generated.api_response import ApiResponse
4
4
  import twitter_openapi_python_generated.models as models
@@ -26,7 +26,7 @@ class TweetApiUtilsData(BaseModel):
26
26
  replies: List["TweetApiUtilsData"] = Field(default_factory=list)
27
27
  quoted: Optional["TweetApiUtilsData"] = Field(default=None)
28
28
  retweeted: Optional["TweetApiUtilsData"] = Field(default=None)
29
- promoted_metadata: Optional[dict[str, Any]] = Field(default=None)
29
+ promoted_metadata: Optional[models.PromotedMetadata] = Field(default=None)
30
30
 
31
31
 
32
32
  class UserApiUtilsData(BaseModel):
@@ -153,7 +153,7 @@ def user_or_null_converter(user: models.UserUnion) -> Optional[models.User]:
153
153
 
154
154
  def build_tweet_api_utils(
155
155
  result: models.ItemResult,
156
- promoted_metadata: Optional[dict[str, Any]] = None,
156
+ promoted_metadata: Optional[models.PromotedMetadata] = None,
157
157
  reply: Optional[List[models.TimelineTweet]] = None,
158
158
  ) -> Optional[TweetApiUtilsData]:
159
159
  tweet = tweet_results_converter(result)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: twitter_openapi_python
3
- Version: 0.0.45
3
+ Version: 0.1.0
4
4
  Summary: Twitter OpenAPI
5
5
  Keywords: twitter,api,python,scraper
6
6
  Author: fa0311
@@ -8,7 +8,7 @@ Author-email: fa0311 <yuki@yuki0311.com>
8
8
  License-Expression: LicenseRef-Custom OR AGPL-3.0-or-later
9
9
  License-File: LICENSE
10
10
  License-File: LICENSE.AGPL
11
- Requires-Dist: twitter-openapi-python-generated==0.0.35
11
+ Requires-Dist: twitter-openapi-python-generated==0.1.0
12
12
  Requires-Dist: pydantic>=2.6
13
13
  Requires-Dist: requests>=2.31.0,<3.0.0
14
14
  Requires-Dist: urllib3>=2.1.0,<3.0.0
@@ -9,19 +9,19 @@ twitter_openapi_python/api/user_list_api.py,sha256=KYNYZfBFuvvZQERJcVjj5ZYc93tuC
9
9
  twitter_openapi_python/api/users_api.py,sha256=8bcRi-kYZ9MtsgTxYDU1SnVqKtcyQ1b7QqWEVXVafqk,1750
10
10
  twitter_openapi_python/api/v11_get_api.py,sha256=UXe34f6IBYExqWCJ8HCld_8d_ChQb92je0G5VtLxmyM,1978
11
11
  twitter_openapi_python/api/v11_post_api.py,sha256=eErGBOo-y4E1AAMIHgeWnc0rAFmc5KgIoipJI-8V0Y8,1781
12
- twitter_openapi_python/client.py,sha256=XkjUQYmewxYeTBl_IZng5Kz7pSmtgpaRg6bK9LCwXQ4,6786
12
+ twitter_openapi_python/client.py,sha256=LUGEgRmCgnqNJJwQu1WO3ssJfQjVUzhvnf7vchF1UuM,6786
13
13
  twitter_openapi_python/models/__init__.py,sha256=Mt28XGFXzAauvwrjFhKyKpo2ZoN7uP_TMq-d9JuM9qk,561
14
14
  twitter_openapi_python/models/base.py,sha256=3sw6wdQn9i8FoujFxhEFVWIB26-qjI6JTDuXKuebM0Y,189
15
15
  twitter_openapi_python/models/header.py,sha256=EKujtBRZOJmeh2SD1QOCsLWaE9gdGY4wsNUgwCnbTCU,644
16
16
  twitter_openapi_python/models/initial_state.py,sha256=XULKiYznCIG5TsLfV5RGPD_xOiE2bmKt1C8EtL-tQKM,513
17
17
  twitter_openapi_python/models/response.py,sha256=ziBYbwdGSeCN3zfu5mFTTd8613zaZetzkZf8y_roTaI,461
18
- twitter_openapi_python/models/timeline.py,sha256=uYCQWfI6nCTV6lzYse_ckACuQN_91Ucg-kmMcsbnoFE,1352
18
+ twitter_openapi_python/models/timeline.py,sha256=5oyOUgCtrfuY8hDPVgAL2-s7Ma4jOdzWtV8kiCR1V98,1356
19
19
  twitter_openapi_python/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
20
  twitter_openapi_python/tid.py,sha256=xjqJMyPOp62nw2MQjMGHaB4L6G6OZHuWkMR-WKJo7aU,1120
21
21
  twitter_openapi_python/utils/__init__.py,sha256=dCcm68kn5uv5rCRMLRd0rpeN6hAKulIz9khp0HLgx1c,427
22
- twitter_openapi_python/utils/api.py,sha256=-fqJEcLOM4Y3UniSDxNldp8NCsgJ9vDPn4mQxOSOtyU,10122
23
- twitter_openapi_python-0.0.45.dist-info/licenses/LICENSE,sha256=sLv8EMhrPCMG_LeweYvYKS_B-cDMBwBSKZel7LSMGAs,1493
24
- twitter_openapi_python-0.0.45.dist-info/licenses/LICENSE.AGPL,sha256=TfPDBt3ar0uv_f9cqCDMZ5rIzW3CY8anRRd4PkL6ejs,34522
25
- twitter_openapi_python-0.0.45.dist-info/WHEEL,sha256=9IUYslYuG_asT4WlWvfk_K76nveuLvSTKDoLeL0cV-Q,80
26
- twitter_openapi_python-0.0.45.dist-info/METADATA,sha256=_-Nw5lAAhfRaojF4MI3FYIA0E7ChFltIaIU-_oL5SDI,3234
27
- twitter_openapi_python-0.0.45.dist-info/RECORD,,
22
+ twitter_openapi_python/utils/api.py,sha256=k51VenadKXzLeoA_fS9YyAb_Ufx6Hz7p_l3WnITdUBs,10131
23
+ twitter_openapi_python-0.1.0.dist-info/licenses/LICENSE,sha256=sLv8EMhrPCMG_LeweYvYKS_B-cDMBwBSKZel7LSMGAs,1493
24
+ twitter_openapi_python-0.1.0.dist-info/licenses/LICENSE.AGPL,sha256=TfPDBt3ar0uv_f9cqCDMZ5rIzW3CY8anRRd4PkL6ejs,34522
25
+ twitter_openapi_python-0.1.0.dist-info/WHEEL,sha256=9IUYslYuG_asT4WlWvfk_K76nveuLvSTKDoLeL0cV-Q,80
26
+ twitter_openapi_python-0.1.0.dist-info/METADATA,sha256=c1EtDT83hxNtKvGdwrrHX77NyF-k1LEtR69Kohl-hkw,3232
27
+ twitter_openapi_python-0.1.0.dist-info/RECORD,,