download-webpage-data
A Python tool to download website contents through Tor with German exit nodes and extract images from downloaded websites.
Prerequisites
- Python 3.8 or higher
- Tor service installed on your system
torrcconfiguration file (will be created automatically)
Installation
- Clone this repository
- Install dependencies:
pip install .
Features
Website Downloader
- Routes all traffic through Tor
- Uses German exit nodes exclusively
- Downloads complete website contents
- Preserves website structure
- Handles errors gracefully
- Supports sites with invalid SSL certificates
- Retries failed downloads with new Tor identity
Image Extractor
- Extracts all images from downloaded websites
- Supports multiple image formats (jpg, jpeg, png, gif, webp, svg, ico)
- Finds both direct image files and HTML-referenced images
- Preserves original filenames
- Creates organized output structure
- Handles duplicate files
Usage
Downloading Websites
- Ensure Tor service is running on your system:
# On Manjaro/Arch:
sudo systemctl start tor
- Download a website:
# Interactive mode
python -m download_webpage_data
# Direct URL mode
python -m download_webpage_data -u https://example.com
# With SSL verification
python -m download_webpage_data --verify-ssl -u https://example.com
Extracting Images
- After downloading one or more websites, run:
python -m download_webpage_data.extract_images
- Select the website from the list
- Images will be extracted to
images/<website>/directory
Command-line Options
Website Downloader
-u, --url: URL to download (if not provided, will prompt)--verify-ssl: Enable SSL certificate verification (disabled by default)
Image Extractor
- Interactive menu to select from downloaded websites
- Press 'q' to quit at any time
Directory Structure
.
├── downloads/ # Downloaded websites
│ └── example.com/ # Website content
└── images/ # Extracted images
└── example.com/ # Images from website
Security Note
This tool is for legitimate use only. Ensure you have permission to download website contents before using this tool.
License
MIT
Metadata
Release files for download-webpage-data 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| download_webpage_data-1.0.2.tar.gz | 9.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| download_webpage_data-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.8 kB
Release files / download_webpage_data-1.0.2.tar.gz
| Download URL | download_webpage_data-1.0.2.tar.gz |
|---|---|
| Size | 9.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9f3957d2d9d6159680599c8cde5f40a44aa4b65f86f11a842cc26f5174548276
|
|
BLAKE2b-256 checksum How to use checksums |
3244c1e748a40d0c13c9a0bb6bb94b958d9fed3733ba3ea46c8fd8ec3e3d0c82
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.8
|
Release files / download_webpage_data-1.0.2-py3-none-any.whl
| Download URL | download_webpage_data-1.0.2-py3-none-any.whl |
|---|---|
| Size | 13.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d2eee7096917f00ff27044e1b57c5dc79b236f36bc3fa0808d6f4fbea2eb486e
|
|
BLAKE2b-256 checksum How to use checksums |
19bd02ad9f65716f4deeca8c80108bdb9a1c9a7202c9ee2a34c410077345e688
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.8
|
Security for download-webpage-data 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.