使用SpiderX模块
1. 在IDE中安装汉化和拼音插件
2. 导入模块并调用函数。
如:
#安装教程
#更新pip
#python -m pip install --upgrade pip
#可以设置pip镜像服务器
#pip config set global.index-url --site https://pypi.tuna.tsinghua.edu.cn/simple
#pip config set global.index-url --site https://pypi.doubanio.com/simple
#自动安装依赖库
#pip install spiderx
#自动安装可选依赖库
#pip install spiderx[all]
from spiderx import sx
# 获取本地IP地址
print(sx.获取_IP信息())
# 保存JSON文件
a = {'a': 1, 'b': 2, 'c': 3}
sx.保存JSON('a.json', a)
# 加载JSON文件
b = sx.加载JSON('a.json')
# 打印JSON文件
sx.打印_JSON(b)
Metadata
Release files for spiderx 2.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spiderx-2.1.0-py3-none-any.whl | Python 3 | none | any | Details for spiderx-2.1.0-py3-none-any.whl |
Release files / spiderx-2.1.0-py3-none-any.whl
| Download URL | spiderx-2.1.0-py3-none-any.whl |
|---|---|
| Size | 117.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e6f053735c5d02473fe3f1aac49f97d087dff334e1ddf85555407067c897278c
|
|
BLAKE2b-256 checksum How to use checksums |
a0fde36aa3d055d6eacdc2f01ff7c3dd3d3435125b41cab85a1135886d356fdb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.18
|
Security for spiderx 2.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.