python的智能下载管理器
pySmartDL的Python项目详细描述
python智能下载管理器–pysmartdl
pySmartDL努力成为一个成熟的python智能下载管理器。主要功能:
- 内置下载加速(使用multipart downloading technique)。
- 镜子支撑。
- 暂停/取消暂停功能。
- 限速功能。
- 哈希检查。
- 无阻塞,显示进度条、下载速度和ETA。
- 完全支持自定义头和方法。
- python 3支持
项目链接
- Downloads: http://pypi.python.org/pypi/pySmartDL/
- Documentation: http://itaybb.github.io/pySmartDL/
- Project page: https://github.com/iTaybb/pySmartDL/
- Bugs and Issues: https://github.com/iTaybb/pySmartDL/issues
安装
使用pip(推荐方式)
Make sure python-pip is installed on you system. If you are using virtualenv, then pip is alredy installed into environments created by virtualenv. Run pip to install pySmartDL:
^{tt2}$
来自源
The pySmartDL package is installed from source using distutils in the usual way. Download the source distribution first. Unpack the source zip and run the following to install the package site-wide:
^{tt3}$
用法
下载就像创建一个实例并启动它一样简单:
from pySmartDL import SmartDL
url = “https://github.com/iTaybb/pySmartDL/raw/master/test/7za920.zip” dest = “C:\Downloads" # or ‘~/Downloads/’ on linux
obj = SmartDL(url, dest) obj.start() # [*] 0.23 Mb / 0.37 Mb @ 88.00Kb/s [##########——–] [60%, 2s left]
path = obj.get_dest()
要求
- Python 3.4 or greater.
版权所有(c)2014-2019 Itay Brandes。