Skip to main content

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'

开发小记

  1. 发布包使用setup.py,修改内容后执行python setup.py upload
  2. 发布包遇到错误: bdist_wheel报错
  3. 首次发布失败(包名重复),更正后再次执行遭遇tag already exists,需要删除tag. git tag -d v2018.5.24
  4. pipreqs自动生成项目requirements.txt: pipreqs . --encoding=utf8
  5. response._content获取图片内容

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyfunctions-2020.6.17.13.47.45.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyfunctions-2020.6.17.13.47.45-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file pyfunctions-2020.6.17.13.47.45.tar.gz.

File metadata

  • Download URL: pyfunctions-2020.6.17.13.47.45.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for pyfunctions-2020.6.17.13.47.45.tar.gz
Algorithm Hash digest
SHA256 005054237d6b12a8d5a263e1290d885bb04a1142956c0160a493d6a15bf2e985
MD5 071b59cb7af6f9310cf274d70d393348
BLAKE2b-256 14b7e88501fc8940b1e4a881afbff074843fa75385f8239da7f3f2903b1f172f

See more details on using hashes here.

File details

Details for the file pyfunctions-2020.6.17.13.47.45-py3-none-any.whl.

File metadata

  • Download URL: pyfunctions-2020.6.17.13.47.45-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for pyfunctions-2020.6.17.13.47.45-py3-none-any.whl
Algorithm Hash digest
SHA256 6c05520fd68eda10c84bff4f4f7518cb30fd48c0f80367c59e54956cb21700a4
MD5 11ec4653ac0a373686ca3b0f0f81a481
BLAKE2b-256 9fcd5284d01309356189fed2e9653047704831939ddb5d16f58367526c511c59

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page