fileDownloader.py-0.4.1
توضیحات
Downloads files via HTTP or FTP
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | fileDownloader.py-0.4.1 |
| نام | fileDownloader.py |
| نسخه کتابخانه | 0.4.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Joshua Banton |
| ایمیل نویسنده | bantonj@gmail.com |
| آدرس صفحه اصلی | http://bantonj.wordpress.com/software/open-source/ |
| آدرس اینترنتی | https://pypi.org/project/fileDownloader.py/ |
| مجوز | MIT |
THIS PACKAGE HAS BEEN DEPRECATED. THE UPDATED VERSION IS file-downloader (https://pypi.org/project/file-downloader/).
Intro
This module is used for downloading files from the internet via http or ftp.
It supports basic http authentication and ftp accounts, and supports resuming downloads. It does not support https or sftp at this time. The main advantage of this package is it's ease of use, and pure pythoness. It only uses the Python standard library, so no dependencies to deal with, and no C to compile.
Usage
If a non-standard port is needed just include it in the url (http://example.com:7632).
Simple
downloader = fileDownloader.DownloadFile('http://example.com/file.zip')
downloader.download()
Use full path to download
downloader = fileDownloader.DownloadFile('http://example.com/file.zip', "C:\Users\username\Downloads\newfilename.zip")
downloader.download()
Password protected download
downloader = fileDownloader.DownloadFile('http://example.com/file.zip', "C:\Users\username\Downloads\newfilename.zip", ('username','password'))
downloader.download()
Resume
downloader = fileDownloader.DownloadFile('http://example.com/file.zip')
downloader.resume()
نحوه نصب
نصب پکیج whl fileDownloader.py-0.4.1:
pip install fileDownloader.py-0.4.1.whl
نصب پکیج tar.gz fileDownloader.py-0.4.1:
pip install fileDownloader.py-0.4.1.tar.gz