Python utility to download files through OneDrive
Project description
OneDrive downloader: python utility to download files from OneDrive
Install (PyPI)
pip install onedrivedownloader
First stable release: 1.0.0
Current: 1.1.3
Do not require authentication.
Requires
tqdm
: for nice progress barrequests
: fetch data from OneDrive
Usage
from onedrivedownloader import download
...
download(url: str, filename: str, unzip=False, unzip_path: str = None, force_download=False, force_unzip=False, clean=False)
Required parameters:
url
: The url to download from (should end with '?download=1').filename
: The filename to save the file as.
Optional parameters:
unzip
: want to unzip file or just download? If file is not.zip
, do nothing.unzip_path
: path to unzip files (default: current directory)force_download
: force files download if exist? (default: False)clean
: clean source file after unzip?
Example
ln = "https://unimore365-my.sharepoint.com/:u:/g/personal/215580_unimore_it/EUmqgpzRz3tPlD2KiVNRqdABBJl7qQYcIeROtMc4g2UeIA?e=zZtkLr"
download(ln, filename="file.zip", unzip=True, unzip_path="./data")
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
File details
Details for the file onedrivedownloader-1.1.3.tar.gz
.
File metadata
- Download URL: onedrivedownloader-1.1.3.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ce25960fd407790eae3af1880df60d6bfd52d0176e8f058ec5d5c4e1470ac55 |
|
MD5 | 7a53bf22a6e02d7d302b65a86b9d80bc |
|
BLAKE2b-256 | 7cff7559ec3ba73e4a5ca40496a9a9329be9910b7601ac07d0568cb3629129e2 |
File details
Details for the file onedrivedownloader-1.1.3-py3-none-any.whl
.
File metadata
- Download URL: onedrivedownloader-1.1.3-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2eb0bc9ae70108c328b460052da2733ccc1738db57fbc6c0fe501ca7b8483253 |
|
MD5 | c856fd5cd919345691ca8dc8a097f206 |
|
BLAKE2b-256 | 10a8379308409ec734a6f7e6774a3b048788cd2c46b5afb6390eadbce9e8a6e2 |