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.1.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.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: filebrowser_downloader-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 a4ec770ec7b2484f2c462f6f18f148f7feda32f654ca46e6c24b95d7a9d05c43
MD5 54d7460c21eb39422c1224af0973db5d
BLAKE2b-256 8278dfbd15fec8dfc24a3756a1691cd7effe8441475dcf1438843ba469ff69e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for filebrowser_downloader-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2ac90af26feff8af51cac09e259c39f26275d102264b0c4f95cc609c922b78f9
MD5 c699b7ffddfa60feb04e7c5135a5243b
BLAKE2b-256 e75c4bcd161fa18feffecbfb13ed7291b61cbea85dc6706fc9cefab8d4c1b742

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