A simple package to clone websites and download specific files using wget.
Project description
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.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mirrormate-3.0.0.tar.gz.
File metadata
- Download URL: mirrormate-3.0.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a742528172f15f8f70eecd6262afafc6df2669d45d2f6aaf523d5defd45aec29
|
|
| MD5 |
94d09e146ea2f7bf6adc16797033d7bb
|
|
| BLAKE2b-256 |
f001f738fe561b107e36e89e43851006e9a4c96d2579f323017bb20cd7f7d4c2
|
File details
Details for the file mirrormate-3.0.0-py3-none-any.whl.
File metadata
- Download URL: mirrormate-3.0.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
320b7642b52443b86a4c8cbcf3d7b17c12077d6e990b031c94b28e3d46c30433
|
|
| MD5 |
8b3ee0703ac330c769de201b74e4a4e7
|
|
| BLAKE2b-256 |
6274af4b611203b0a6c6d55a03483d5f4870e4d73e8a35f0cfe0d9e3d9842607
|