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 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中- long description Markdown file render error.
- fake_useragent.errors.FakeUserAgentError: Maximum amount of retries reached
开发小记
- 发布包使用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
python setup.py upload
400 Error. Invalid or non-existent authentication. ~/.pypircpython setup.py upload
400 Error. The description failed to render. long_description
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.6.4.17.21.39.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 612d682c8e2e18b8800e3537afd4f24271d7d57c1ad0b16c4ec5e3866c508a2c |
|
MD5 | b1f3478489d3bd01306eeab3b23d2eb2 |
|
BLAKE2b-256 | 2795207407cb5fa642965b90206d83a5ec6be3bd4fc1d37cdfd09c2674cd4ba8 |
Close
Hashes for pyfunctions-2019.6.4.17.21.39-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c59fed99fff06a20aeb7790afb0393f17c11ffced91b197bf5763e81ce677a29 |
|
MD5 | 9befbfb9c4b2ade62eb4ea0d0a4b7291 |
|
BLAKE2b-256 | 3e5082a2fd3fb7e88c1d1f1d0e1bbb0685c61293c7e2882ee681f8575d0c8f72 |