Skip to main content

MirrorMate

MirrorMate is a simple command-line tool for mirroring websites and downloading files. It utilizes wget to perform these tasks, making it easy to retrieve entire sites or specific files.

Table of Contents

Features

  • Mirror entire websites.
  • Download single files from specified URLs.
  • Simple command-line interface.
  • Silent mode for background operations.

Installation

To install MirrorMate, run the following command:

pip install mirrormate

Make sure you have wget installed on your system. You can install it using:

  • For Debian/Ubuntu:

    sudo apt-get install wget
    
  • For macOS (using Homebrew):

    brew install wget
    

Usage

Command Line Interface

You can use MirrorMate directly from the command line:

mirrormate --mirror https://example.com

This command will mirror the specified website.

Importing as a Module

You can also use MirrorMate as a Python module in your scripts:

import mirrormate

# To mirror a website
if mirrormate.clone(url="https://example.com", silent=False):
    print("Successfully mirrored the website.")
else:
    print("Not downloadable.")

# To download a single file
if mirrormate.clone(file_url="https://example.com/file.py", silent=False):
    print("Successfully downloaded the file.")
else:
    print("Not downloadable.")

Command Line Options

  • --help: Show help message and exit.
  • --mirror <url>: URL to mirror.
  • --copy <file_url>: Single file URL to download.

Example Commands

  • To display help information:

    mirrormate --help
    
  • To mirror a website:

    mirrormate --mirror https://example.com
    
  • To download a single file:

    mirrormate --copy https://example.com/index.html
    

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Metadata

Release files for mirrormate 3.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mirrormate 3.0.0
File Size Uploaded
mirrormate-3.0.0.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mirrormate 3.0.0
File Interpreter ABI Platform
mirrormate-3.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.1 kB

Release files / mirrormate-3.0.0.tar.gz

Download URL mirrormate-3.0.0.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a742528172f15f8f70eecd6262afafc6df2669d45d2f6aaf523d5defd45aec29
BLAKE2b-256 checksum
How to use checksums
f001f738fe561b107e36e89e43851006e9a4c96d2579f323017bb20cd7f7d4c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.2

Release files / mirrormate-3.0.0-py3-none-any.whl

Download URL mirrormate-3.0.0-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
320b7642b52443b86a4c8cbcf3d7b17c12077d6e990b031c94b28e3d46c30433
BLAKE2b-256 checksum
How to use checksums
6274af4b611203b0a6c6d55a03483d5f4870e4d73e8a35f0cfe0d9e3d9842607
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.2

Release history Release notifications | RSS feed

This release

3.0.0 This release

2 release files

2.1

2 release files

2.0

2 release files

1.0.0

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page