arknights CN request library
pip install arknights
from pathlib import Path
from arknights import Arknights, AkCall
ark = Arknights(
username="18888888888", # phone number
password="xxxxxxx", # password
access_token="", # access_token (if you have
device_id="ffffffffffffffffffffffffffffffff", # device_id
device_id2="ffffffffffffffff", # device_id2
relogin=False, # auto relogin
use_cache=True, # use session cache
session_dir=Path("accs"), # session_dir
proxy="http://127.0.0.1:1080" # http proxy
)
ark.login()
user_data = AkCall.Account(ark).syncData()
print(f'Is Level {user_data["user"]["status"]["level"]} now')
search_player = AkCall.Social(ark).getSortListInfo("两面包夹芝士", "")
player_list = AkCall.Social(ark).searchPlayer(
[x["uid"] for x in search_player["result"]]
)
for player in player_list["result"]:
nickName = player["nickName"]
print(nickName)