1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-11 15:40:26 +01:00

update tools

Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ 2024-09-27 11:12:52 +09:00
parent 29a38318e8
commit 4ffbb5e063
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
9 changed files with 158 additions and 22 deletions

View file

@ -1,6 +1,7 @@
import base64
import concurrent.futures
import glob
import inspect
import json
import logging
import os
@ -180,6 +181,8 @@ if __name__ == "__main__":
f'cookie.json not found. Please run `{"; ".join(commands)}` first.'
)
if isinstance(cookies, list):
cookies = {k["name"]: k["value"] for k in cookies}
cookies_str = "; ".join([f"{k}={v}" for k, v in cookies.items()])
with open("src/config/placeholder.json", "r") as f:
@ -231,7 +234,7 @@ if __name__ == "__main__":
error_count = 0
for x in [pt.DefaultApi, pt.TweetApi, pt.UserApi, pt.UsersApi, pt.UserListApi]:
for props, fn in x.__dict__.items():
for props, fn in inspect.getmembers(x):
if not callable(fn):
continue
if props.startswith("__") or not props.endswith("_with_http_info"):