## 使用SpiderX模块
*1. 在IDE中安装汉化和拼音插件*
*2. 导入模块并调用函数。*
如:
```python
#安装教程
#更新pip
#python -m pip install --upgrade pip
#pip config set global.index-url --site https://pypi.tuna.tsinghua.edu.cn/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)
Raw data
{
"_id": null,
"home_page": "https://pypi.org/project/spiderx/",
"name": "spiderx",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": null,
"author": "wgnms",
"author_email": "wgnms@qq.com",
"download_url": null,
"platform": null,
"description": "## \u4f7f\u7528SpiderX\u6a21\u5757\n\n*1. \u5728IDE\u4e2d\u5b89\u88c5\u6c49\u5316\u548c\u62fc\u97f3\u63d2\u4ef6* \n*2. \u5bfc\u5165\u6a21\u5757\u5e76\u8c03\u7528\u51fd\u6570\u3002*\n\n\n\u5982\uff1a\n```python\n#\u5b89\u88c5\u6559\u7a0b\n#\u66f4\u65b0pip\n#python -m pip install --upgrade pip\n#pip config set global.index-url --site https://pypi.tuna.tsinghua.edu.cn/simple\n#\u81ea\u52a8\u5b89\u88c5\u4f9d\u8d56\u5e93\n#pip install spiderx \n#\u81ea\u52a8\u5b89\u88c5\u53ef\u9009\u4f9d\u8d56\u5e93\n#pip install spiderx[all]\nfrom spiderx import sx\n\n# \u83b7\u53d6\u672c\u5730IP\u5730\u5740\nprint(sx.\u83b7\u53d6_IP\u4fe1\u606f())\n\n# \u4fdd\u5b58JSON\u6587\u4ef6\na = {'a': 1, 'b': 2, 'c': 3}\nsx.\u4fdd\u5b58JSON('a.json', a)\n\n# \u52a0\u8f7dJSON\u6587\u4ef6\nb = sx.\u52a0\u8f7dJSON('a.json')\n\n# \u6253\u5370JSON\u6587\u4ef6\nsx.\u6253\u5370_JSON(b)\n\n\n",
"bugtrack_url": null,
"license": "https://pypi.org/project/spiderx/",
"summary": "\u722c\u866b\u51fd\u6570\u96c6 \u722c\u866b\u5de5\u5177\u7c7b",
"version": "1.10.94",
"project_urls": {
"Homepage": "https://pypi.org/project/spiderx/"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "3cb4ee4e727c3e4ee89f01fcbeea8ef5aee06532539bb215210394b2dfd04ab3",
"md5": "be9931dbbeefb2f9658eb378e26fa87a",
"sha256": "fec1d6c88a5b3df464752eb656a9535d6deb4f4b70a278aff3e5b8c72c06fa5e"
},
"downloads": -1,
"filename": "spiderx-1.10.94-py3-none-any.whl",
"has_sig": false,
"md5_digest": "be9931dbbeefb2f9658eb378e26fa87a",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 92241,
"upload_time": "2024-04-18T08:54:02",
"upload_time_iso_8601": "2024-04-18T08:54:02.424968Z",
"url": "https://files.pythonhosted.org/packages/3c/b4/ee4e727c3e4ee89f01fcbeea8ef5aee06532539bb215210394b2dfd04ab3/spiderx-1.10.94-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-18 08:54:02",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "spiderx"
}