Skip to main content

使用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.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for spiderx 2.5.0
File Interpreter ABI Platform Actions
spiderx-2.5.0-py3-none-any.whl Python 3 none any Details for spiderx-2.5.0-py3-none-any.whl

Release files / spiderx-2.5.0-py3-none-any.whl

Download URL spiderx-2.5.0-py3-none-any.whl
Size 118.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5475e7c0c4cbaf2110899c6de63471647b55fd5eb316e6170cf838a9bb66d262
BLAKE2b-256 checksum
How to use checksums
d7f346d8475d37e306c00af5be7b9bf1c60b34c09fb0364a497ad9bcd499cfad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.5

Security for spiderx 2.5.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.

Release history Release notifications | RSS feed

This release

2.5.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page