add cookie & a few apis
This commit is contained in:
1 parent
64fc2a5e2a
commit
7139bd0951
15 files changed
+836
-38
No files matched your search
@@ -0,0 +1,22 @@
|
||||
import argparse
|
||||
import json
|
||||
|
||||
from src.title import TitleCookie
|
||||
from src import payload
|
||||
|
||||
def GetUserExtendApi(userId, cookie):
|
||||
|
||||
data = payload.GetUserData(userId)
|
||||
|
||||
res = TitleCookie(userId, "GetUserExtendApi", data, cookie)
|
||||
|
||||
return res
|
||||
|
||||
if __name__ == "__main__":
|
||||
parser = argparse.ArgumentParser(description="Title GetUserExtendApi")
|
||||
|
||||
parser.add_argument("--userId", type=int, required=True, help="userId")
|
||||
parser.add_argument("--cookie", type=str, required=True, help="cookie")
|
||||
|
||||
args = parser.parse_args()
|
||||
print(GetUserExtendApi(args.userId, json.loads(args.cookie)))
|
||||
Reference in new issue
Block a user