This project contains many functions that can be used in daily development.
Project description
pyfunctions
常用函数的封装,包括不限于python爬虫的请求、解析等
Installation
You can get pyfunctions
via pip:
pip install pyfunctions
Clone the source to get the latest version:
$ git clone https://github.com/broholens/pyfunctions.git
$ pip install -r requirements.txt
QuickStart
from pyfunctions import fun
text = fun.url2text('http://www.mogojob.com/')
>>> '首页 职位大厅 招聘企业 猎头服务 商务服务 我要招人\n\n企业入口 个人登录\n\n\n\n全国 北京 上海 西安 广州 杭州 深圳 成都 重庆 武汉 南京 天津 ...
客服工作时间 : 周一至周五 09:00 - 18:00\n\n投递信息 我的简历 退出系统\n\n'
开发小记
- 发布包使用setup.py,修改内容后执行
python setup.py upload
- 发布包遇到错误: bdist_wheel报错
- 首次发布失败(包名重复),更正后再次执行遭遇
tag already exists
,需要删除tag.git tag -d v2018.5.24
pipreqs
自动生成项目requirements.txt
:pipreqs . --encoding=utf8
response._content
获取图片内容
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 Distribution
Built Distribution
Close
Hashes for pyfunctions-2020.6.15.21.34.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f410255d594f7f0e369733a0237cd5f33326e71a9c39d9e86dc85c377722afef |
|
MD5 | 6da81ceccbe16a7126fdaec2137acc13 |
|
BLAKE2b-256 | 8b051f2eb4f9001df0d95d95fec0c5ee814bcbf596695b54c7ec729cfe06ad28 |
Close
Hashes for pyfunctions-2020.6.15.21.34.11-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9692f26f455c2bb151c8dd7212f4604f1f56d9676c5a68de1c099ceb6356fff7 |
|
MD5 | 7aa1c124c747070221acddce01a1ed34 |
|
BLAKE2b-256 | 14aa44c61c7182e3f6e48c2e20fb1abe6eef24fe3cb5811007d18ad2d4f7d362 |