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
import functions
text = functions.url2text('http://www.mogojob.com/')
>>> '首页 职位大厅 招聘企业 猎头服务 商务服务 我要招人\n\n企业入口 个人登录\n\n\n\n全国 北京 上海 西安 广州 杭州 深圳 成都 重庆 武汉 南京 天津 ...
客服工作时间 : 周一至周五 09:00 - 18:00\n\n投递信息 我的简历 退出系统\n\n'
TODO
- requirements.txt自动加载到setup.py中
开发小记
- 发布包使用setup.py,修改内容后执行
python setup.py upload
- 发布包遇到错误: bdist_wheel报错
- 首次发布失败(包名重复),更正后再次执行遭遇
tag already exists
,需要删除tag.git tag -d v2018.5.24
可以集成到setup.py
中 pipreqs
自动生成项目requirements.txt
:pipreqs . --encoding=utf8
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-2019.5.24.21.52.17.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2504056cdbd7dceaaa3fefc06b02a952d58c736b6e8582a952d71f0ca0800c58 |
|
MD5 | bcfedef17fd26a6bb319dedbcae2c343 |
|
BLAKE2b-256 | 2274344b6b042d8a29779c426138af2c2951d36a36c82f56da3dc5d3330c5f49 |
Close
Hashes for pyfunctions-2019.5.24.21.52.17-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8e7bae4c4047afbf58513c0abe7acf1dc02db0af9a823b44ec08abe97b41293 |
|
MD5 | 6134d7e085410bb818740c06d8b6dfd6 |
|
BLAKE2b-256 | cd7d0b89e168e6dfb9ce9e6f36a0b0b7859da5adb0572d8cc46cad91de5ae1da |