Skip to main content

Command-line interface for Megaloader

Project description

[pkg]: megaloader-cli

PyPI version

Command-line interface for the megaloader library. Extract metadata and download files from supported hosting platforms directly in your terminal.

Installation

pip install megaloader-cli

The CLI installs the core megaloader library as a dependency. Both packages can be used independently.

Basic usage

List available files without downloading:

megaloader extract https://pixeldrain.com/l/abc123

Download files to a directory:

megaloader download https://pixeldrain.com/l/abc123 ./downloads

List supported platforms:

megaloader plugins

Commands

The extract command shows file metadata without downloading anything. Add --json for machine-readable output or --verbose for debug logs:

megaloader extract https://pixeldrain.com/l/abc123
megaloader extract https://gofile.io/d/xyz456 --json
megaloader extract https://cyberdrop.me/a/album --verbose

The download command saves files to the specified directory. Defaults to ./downloads when omitted. Files are grouped into collection subfolders by default:

megaloader download https://pixeldrain.com/l/abc123
megaloader download https://cyberdrop.me/a/album ./my-files
megaloader download https://bunkr.si/a/xyz789 ./downloads --verbose

Add --flat to disable subfolders and write all files directly to the output directory. Use --filter to download only files matching a glob pattern:

megaloader download https://pixeldrain.com/l/abc123 ./downloads --flat
megaloader download https://cyberdrop.me/a/album ./videos --filter "*.mp4"
megaloader download https://bunkr.si/a/xyz789 ./images --filter "*.{jpg,png}"

GoFile password-protected content requires the --password argument:

megaloader download https://gofile.io/d/protected ./downloads --password secret123

The plugins command lists all supported platforms and domains.

Common patterns

Preview files before downloading:

megaloader extract https://pixeldrain.com/l/abc123
megaloader download https://pixeldrain.com/l/abc123 ./downloads

Filter by type to download only what you need:

megaloader download https://cyberdrop.me/a/album ./videos --filter "*.mp4"
megaloader download https://bunkr.si/a/xyz ./images --filter "*.jpg"

Control file organization with the --flat flag:

megaloader download https://pixeldrain.com/l/abc ./organized
megaloader download https://pixeldrain.com/l/abc ./flat --flat

Enable verbose logging for troubleshooting:

megaloader download https://example.com/file ./downloads --verbose

Relationship to core library

The CLI wraps the core megaloader library. It handles argument parsing, output formatting, and file downloads. The core library performs URL detection, metadata extraction, and platform-specific logic.

Use the CLI for terminal workflows, quick downloads, and platform exploration. Use the core library for Python integration, custom handling, progress tracking, and batch processing. See the core library documentation for programmatic usage.

Development

The CLI is part of a uv workspace. Install from the repository root:

uv sync
uv run megaloader --help

Install in editable mode for development:

uv pip install -e packages/cli

Run uv run ruff format . and the test suite before committing.

Contributing

Contributions are welcome. See the repository contributing guide for setup and submission details. Report bugs and request features through GitHub Discussions. Include your Python version, error messages, and problematic URLs.

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

megaloader_cli-0.2.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

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

megaloader_cli-0.2.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: megaloader_cli-0.2.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for megaloader_cli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 2437588906a2ab762e06328f864b41abd7ec8d3380bc94fea22c996543e79bda
MD5 cb132b625a02e8e889c75c7313165b13
BLAKE2b-256 54bf78dcbd4727bbf13345e93c45e6866dcfaf11cb4f3a4ef654d045af068412

See more details on using hashes here.

Provenance

The following attestation bundles were made for megaloader_cli-0.2.0.tar.gz:

Publisher: release-cli.yml on totallynotdavid/megaloader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: megaloader_cli-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for megaloader_cli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e4d20575409c3fbbc2ca05ca73bc8cb495fc0dba113407dc1399f3aa1837727c
MD5 6d98ab1ff04b76020a33b4ecb89ded56
BLAKE2b-256 ccff6122b66dd9df12ed05cf3c01f08df35be609bf6c151a8504c29e9cdbe178

See more details on using hashes here.

Provenance

The following attestation bundles were made for megaloader_cli-0.2.0-py3-none-any.whl:

Publisher: release-cli.yml on totallynotdavid/megaloader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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