Genshin Impact Tools
Project description
GenshinImpactTools
Genshin Impact Tools
Some APIs are built-in (genshin.pub——Traveler's passport,ys.minigg.cn——Inquiry of dishonest personnel, black technology toolbox,Minigg API)
Deployment method
1. Install Python
(This program is written based on Python 3.9, please keep the same version, at least use Python 3.7 or above)
2. Installation dependencies
You can install dependencies with the following command
pip install -r requirements.txt
3. Install gadgets
Install through the following command
python setup.py install
4. Deploy the browser driver (optional, deploy this step if you need to use the "genshin.pub——Traveler's passport" function)
Install the browser (recommended Chrome , FireFox, etc.)
Install the driver corresponding to the browser version (Chrome is Chrome Driver , FireFox is Gecko Driver )
Put the driver in the browser installation directory
内置API
Note: The following functions are all in run_api.py
Function name | Description |
---|---|
minigg_api_get() | Minigg API call |
traveler_passport() | genshin.pub——Traveler's passport |
untrustworthy_personnel_inquiries() | Untrustworthy personnel inquiries |
tools_get() | Obtaining the Black Technology Toolbox |
minigg_api_get()
Parameters:
entry: required, type dict, the format is as follows
{
"version":1, # Version: 0 old version 1 new version
"type": 0, # Type: 0 character 1 weapon (used in the new version)
"char": { # Role (used in the new version, cannot be queried with weapons at the same time, only the type above is 0 to query)
"name": [char], Name (English)
"talents": 1, Talent (cannot be queried at the same time as the life seat)
"constellations": 1 Life seat (cannot be queried with talent at the same time)
},
"weapon": [weapon], Weapon (used in the new version, the English name of the weapon, can only be queried if the above type is 1, and cannot be queried at the same time as the character)
"data": [entry] Query data (used in the old version, Chinese name)
}
Replace the above "[char]", "[weapon]" and "[entry]" with the content to be queried
Return: the content returned by Minigg API
traveler_passport()
Parameters:
uid:Required, type int, player UID
name:Required, type str, player name
server:Required, type GenshinServer, player server
world_level:Required, type int, the world level
save_file:Required, type str, the name of the picture (path)
online_time:Optional, type str, online time
way:Optional, type str, contact information
message:Optional, type str, "What else do you want to say?"
characters:Optional, type set, commonly used roles, the format is as follows
{
([char], [level], [constellation]), # char: role name, level: level (not greater than 90, less than 1), constellation: life seat (not greater than 6, less than 0)
([char], [level], [constellation]),
...
}
Replace the above "[char]", "[level]" and "[constellation]" with what you need
Note: The set of this parameter contains at most four tuples, otherwise an error will be reported
icon:Optional, type str, avatar (role name)
Throws:
ElementError: Commonly used character avatar elements are wrong
OutOfSpecificationError: Commonly used role level life seat exceeds the specified error
CharacterNameError: Wrong role name
untrustworthy_personnel_inquiries()
Parameters:
account:Required, type str, account of the person being queried
way:Required, type UntrustworthyPersonnelInquiriesWay, contact information
bot_name:Optional, type str, robot name
bot_passwd:Optional, type str, robot key
is_transfer_api:Optional, type bool, whether it is an API call (if it is False, it is terminal output)
The bot name and bot passwd in the parameters can use the built-in ones, or use your own
Return:
A dict, the format is as follows
{
'success': True, # status
'message': '查询成功', # message
'data': { # data
'api_0002': { # API call interface
'msg': '测试用户111', # information
'imgpath': 'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-b3e62dd1-a692-49ac-8be1-67fc7db35559/be5efaa8-8a8b-4c02-be6a-deaa4c8042f1.jpg', # Evidence screenshot
'blackcount': 5 # Number of dislikes
}
}
}
tools_get()
Parameters: none
Return:
A list, the format is as follows
[
{
'name': '(推荐)原神自动拾取 全分辨率版', # Tool name
'update': '2021-04-29 11:12:45', # Update time
'download': 48, # Download times
'icon': 'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-b3e62dd1-a692-49ac-8be1-67fc7db35559/b63ca2b7-441d-4519-bb83-66d902c97c0a.png', # icon
'description': '适用于所有分辨率的PC端自动拾取工具', # briefIntroduction
'teaching': '运行前提:请以管理员身份运行 执行exe文件……', # tutorials
'video': 'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-b3e62dd1-a692-49ac-8be1-67fc7db35559/3c9ea2b4-b16f-454e-a8a6-42ea1392459f.gif', # 演示视频
'lang': 'AutoHotKey', # Writing language
'author': '喵之召唤师', # author
'download_url': [
'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-b3e62dd1-a692-49ac-8be1-67fc7db35559/925ed4cc-e254-4676-884a-e031f74b1fd2.zip'
] # Download link
}
...
]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file GenshinImpactTools-1.0.tar.gz
.
File metadata
- Download URL: GenshinImpactTools-1.0.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca7164f0a18daf85647df804b6331b4d0d06f3638484f222b82f0d7349923bed |
|
MD5 | dbde6dd54d0b2640543252485bf7d45e |
|
BLAKE2b-256 | 18bb2040cdecb608bf15ca4ad5bc2c91218aaef175b85c41c6487c29e8c05ce2 |
File details
Details for the file GenshinImpactTools-1.0-py3-none-any.whl
.
File metadata
- Download URL: GenshinImpactTools-1.0-py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85bcd218f350b55029d283c8cdc84d5195779a000cb77b914cb415db1f553a9a |
|
MD5 | 701223dc749409d0801a087cf346aa7a |
|
BLAKE2b-256 | f0d2529a1b0f53633aa67f3bbb9d8c3f42484591f77a882d86e7eae844ab4ec3 |