Metadata-Version: 2.1
Name: pyfunctions
Version: 2019.6.4.17.21.39
Summary: This project contains many functions that can be used in daily development.
Home-page: https://github.com/broholens/pyfunctions
Author: zz
Author-email: zzwcng@126.com
License: MIT
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Requires-Python: >=3.6.0
Description-Content-Type: text/markdown
Requires-Dist: chardet (==3.0.4)
Requires-Dist: requests (==2.21.0)
Requires-Dist: html2text (==2018.1.9)
Requires-Dist: w3lib (==1.20.0)
Requires-Dist: lxml (==4.3.3)
Requires-Dist: fake-useragent (==0.1.11)
Requires-Dist: selenium (==3.141.0)


# pyfunctions
常用函数的封装,包括不限于python爬虫的请求、解析等



## Installation

You can get `pyfunctions` via pip:
```
pip install pyfunctions
```

Clone the source to get the latest version:
```bash
$ git clone https://github.com/broholens/pyfunctions.git
$ pip install -r requirements.txt
```

## Quickstart

  ```python
  from pyfunctions import functions
  text = functions.url2text('http://www.mogojob.com/')
  ``` 
  ```bash
  >>> '首页 职位大厅 招聘企业 猎头服务 商务服务 我要招人\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

## 开发小记

1. 发布包使用[setup.py][1],修改内容后执行`python setup.py upload`
2. 发布包遇到错误: [bdist_wheel报错][2]
3. 首次发布失败(包名重复),更正后再次执行遭遇`tag already exists`,需要删除tag. `git tag -d v2018.5.24`
4. `pipreqs`自动生成项目`requirements.txt`: `pipreqs . --encoding=utf8`
5. `response._content`
6. `python setup.py upload` [400 Error. Invalid or non-existent authentication.][3]  ~/.pypirc
7. `python setup.py upload` [400 Error. The description failed to render.][3] long_description

[1]: https://github.com/kennethreitz/setup.py
[2]: https://yq.aliyun.com/articles/644640
[3]: http://www.zhimengzhe.com/bianchengjiaocheng/qitabiancheng/243040.html


