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.0.4
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
Close
Hashes for onedrivedownloader-1.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f70b8a5a16bc852e710fd6dfcf82882c15670aa14ee245f66b531a782224b401 |
|
MD5 | e5d458d54fe650ad2812b4ff40e60747 |
|
BLAKE2b-256 | b2c1d3e6727c730dc8fd9a6e204b8e3af9c42d44e19751fc1c8b6afe8b749193 |