Skip to main content

A simple Python utility to download files or entire folders recursively from Filebrowser shares.

Project description

Filebrowser Downloader

A simple Python utility to download files or entire folders recursively from a Filebrowser public share URL.

Supports:

✅ Password-protected shares
✅ Recursive folder downloads (preserves structure)
✅ Progress display for file downloads
✅ Skipping already downloaded files (with size check)
✅ Partial file cleanup on error
✅ Configurable verbosity and error handling


Installation

Download from PyPI:

pip install filebrowser-downloader

Minimal Usage

from filebrowser_downloader import download

# Download a single file into the current working directory:
download("https://yourhost/share/abc123")

# Download a folder (recursively) into path/to/folder
download("https://yourhost/share/def456", password="secret", destination_folder="path/to/folder")

Usage Parameters

  • base_url: The public share URL (https://host/share/<share_id>).
  • password: Password if the share is protected. If None and required, the user is prompted interactively.
  • destination_folder: Where to save files/folders. Defaults to cwd if it's a file, otherwise a folder is downloaded into a new subdirectory named after the share_id
  • abort_if_exists: Skip files that already exist and match size. If a file exists but size mismatches, it is re-downloaded. (Default = True)
  • verbose: Show progress, warnings, and status messages. (Default = True)
  • raise_on_error: If True, raises exceptions instead of failing silently/logging. (Default = False)
  • Returns: Path to the downloaded file or folder.

Example Output

🔗 Starting download for share: https://yourhost/share/abc123
⬇️  Downloading hello.txt: 0% complete
⬇️  Downloading hello.txt: 100% complete
✅ File saved: downloads/hello.txt

🔗 Starting download for share: https://yourhost/share/def456
📁 Creating folder: downloads/def456
⬇️  Downloading data.csv: 100% complete
✅ File saved: downloads/def456/data.csv

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

filebrowser_downloader-0.2.0.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

filebrowser_downloader-0.2.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file filebrowser_downloader-0.2.0.tar.gz.

File metadata

  • Download URL: filebrowser_downloader-0.2.0.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for filebrowser_downloader-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8e0ec0c3687f324d91773d0fd33c6ceee3424c79032330d3fe469786223391e1
MD5 b24ae914f0d93413272f8693bf3d2f62
BLAKE2b-256 67ab28893359f560b2975207eef27a10f7d4e3be0bc30874d79cab90256f440b

See more details on using hashes here.

File details

Details for the file filebrowser_downloader-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for filebrowser_downloader-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 778fce25c8fa0c9bff0f03360a9f44c4e1deadd8e2be375d7faef92c0582def7
MD5 a33bc23f922b7eabac63b35bf46bb864
BLAKE2b-256 5f4c260d6c19538d8369852bc409526fbed7511f8b3ffcd519d038665dc115bf

See more details on using hashes here.

Supported by

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