爬虫函数集 爬虫工具类
Project description
使用SpiderX模块
1. 在IDE中安装汉化和拼音插件
2. 导入模块并调用函数。
如:
#安装教程
#更新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)
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
spiderx-1.10.73-py3-none-any.whl
(89.2 kB
view hashes)
Close
Hashes for spiderx-1.10.73-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d41a47dfc15503c845b3abeaa360359a1f319fa94ef9f93341f0cf48f595adda |
|
MD5 | f5810caff99c07ad0e82d576a82e8765 |
|
BLAKE2b-256 | 0f777e6945ebd74a3b1f5ef7f78b3db9dff6ada470635e2eccefd821387f259c |