爬虫函数集 爬虫工具类
Project description
使用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)
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
spiderx-1.12.36-py3-none-any.whl
(96.9 kB
view details)
File details
Details for the file spiderx-1.12.36-py3-none-any.whl.
File metadata
- Download URL: spiderx-1.12.36-py3-none-any.whl
- Upload date:
- Size: 96.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
575b436a9806202c60fcc460c2877c5c7f5e363b825cdb414fa10285be3ba5bf
|
|
| MD5 |
92bbc2472f88f7e0a5134e822818e37a
|
|
| BLAKE2b-256 |
04ea911bddadbe0b22eb9a2916eff72a407de09f0222654a51e564b31e73581f
|