Skip to content

About

明日方舟国服请求库 arknights CN request functions

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

23 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Py Arknights

arknights CN request library

Install

pip install arknights

Usage

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)

About

明日方舟国服请求库 arknights CN request functions

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages