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.1.0.tar.gz (5.0 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.1.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for filebrowser_downloader-0.1.0.tar.gz
Algorithm Hash digest
SHA256 407b451c55928dbfd34a597fd46d24560ff85476943c6f1da20aeab18c4632f9
MD5 ea64de9163fb36ce9f349d4ee63ceee3
BLAKE2b-256 9236b98270e4421abe6d51f7d10af79370b7668986ef7e2b08bb3c2f20bd37ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for filebrowser_downloader-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c4cc5dc6f8d25a03606b4c61f9dbe29100d033ccc8c2029e2fa3d147c20d35c5
MD5 4a1ed365236fc9a91dde2faf06ac973d
BLAKE2b-256 fd5f8ac2f634ca49162d49a2c7f6102f5ed304e4c79656a554d59d135d1d9858

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