Skip to main content

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.0

Do not require authentication.

Requires

  • tqdm: for nice progress bar
  • requests: 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


Download files

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

Source Distribution

onedrivedownloader-1.1.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

onedrivedownloader-1.1.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file onedrivedownloader-1.1.0.tar.gz.

File metadata

  • Download URL: onedrivedownloader-1.1.0.tar.gz
  • Upload date:
  • Size: 4.3 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.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for onedrivedownloader-1.1.0.tar.gz
Algorithm Hash digest
SHA256 31c1a347be6f90a923963f01af3780e1c95b11a9f526a6a298378f5b5c13bdb6
MD5 1b0b5905062f6995dd9fb4a35f60afa7
BLAKE2b-256 f02dd8a1d88ca47f91c3e5df2fdc03bbf65599f7cb692488aa1c6bf9f918159f

See more details on using hashes here.

File details

Details for the file onedrivedownloader-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: onedrivedownloader-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.9 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.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for onedrivedownloader-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 254deac901ca050522c9a7db51bdb93e1dc61369f830155534c3afc256ebfb7c
MD5 bd1926492660964f4fba588614be54d0
BLAKE2b-256 0d26ca21420b13e2d3cd8860651a5d47fc2234b4f262e160e042148d37d02996

See more details on using hashes here.

Supported by

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