pyspotlightarchiver
pyspotlightarchiver is a Python CLI tool for fetching, preserving, and managing Windows Spotlight images.
Inspired by Spotlight-Downloader.
🚀 Features
- List available Spotlight image URLs
- Download Spotlight images in 1080p or 4K resolution
- Filter by locale and orientation
- Embed EXIF metadata with Pillow
- Avoid duplicate downloads with perceptual hash and URL checks
- Automatic throttling to avoid rate limits
📦 Requirements
- Python 3.10 or higher (Download Python)
⚖️ Installation
From PyPI (recommended)
pip install pyspotlightarchiver
From source (for development)
-
Clone the repository:
git clone https://github.com/yell0wsuit/pyspotlightarchiver.git cd pyspotlightarchiver
Or download as ZIP and extract it.
-
(Optional) Create a virtual environment:
python -m venv venv .\venv\Scripts\activate # On Windows source venv/bin/activate # On Linux/Mac
We recommend using a virtual environment to avoid conflicts with other Python packages.
-
Install dependencies:
pip install -r requirements.txt
⚙️ Usage
Run the tool using:
pyspotlightarchiver [command] [options]
Available commands
list-url
List available Windows Spotlight image URLs.
pyspotlightarchiver list-url [options]
| Option | Description |
|---|---|
--api-ver |
API version to use (3 for 1080p, 4 for 4K). Default: 3. |
--locale |
Locale code (e.g., en-us). Use all to include all locales. Default: en-us. |
--orientation |
Filter by image orientation: landscape, portrait, or both. Default: landscape. |
--verbose |
Enable verbose output. |
download
Download Spotlight images to your computer.
pyspotlightarchiver download --single|--multiple [options]
Required:
-
--single: Download a single image.- If
--locale all, a random locale is selected. - If
--orientation both, both orientations are downloaded.
- If
-
--multiple: Download all available images.- With
--locale all, all locales are processed. - With
--orientation both, both versions are downloaded.
- With
Additional Options:
| Option | Description |
|---|---|
--api-ver |
API version (3 or 4). Default: 3. |
--locale |
Locale code (e.g., en-us). Default: en-us. |
--orientation |
Image orientation: landscape, portrait, or both. Default: landscape. |
--save-dir |
Directory to save downloaded images. Default: downloaded_spotlight. |
--embed-exif |
Embed EXIF metadata. |
--verbose |
Show detailed logs. |
📌 Notes
🔄 Locale throttling
When using --locale all, the tool throttles API requests to avoid rate limits.
- Locales are processed in chunks of 15.
- Delay increases after each chunk:
- After 15 locales: wait 5 sec
- After 30: wait 10 sec
- After 45: wait 15 sec
- ...up to a maximum of 180 seconds.
🔁 Download loop (with --multiple)
The tool continues downloading images until no new images are found after 50 consecutive attempts.
After every 10 attempts, delay increases gradually, capped at 180 seconds to avoid rate limiting.
📂 Caching & duplicates
- A local SQLite database tracks downloaded image URLs and perceptual hashes
- Located at:
.cache/downloaded_images.sqlite - Prevents redownloading of identical images.
- Detected perceptual duplicates are logged in:
phash_duplicates_report.md
💡 Tip: Do not delete the cache database to preserve download history.
📄 License
This project is licensed under the GNU GPLv3.
Metadata
Release files for pyspotlightarchiver 1.2.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 | Actions |
|---|---|---|---|---|
| pyspotlightarchiver-1.2.2.tar.gz | 136.1 kB | With provenance | Details for pyspotlightarchiver-1.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyspotlightarchiver-1.2.2-py3-none-any.whl | Python 3 | none | any | Details for pyspotlightarchiver-1.2.2-py3-none-any.whl |
Total release size: 178.1 kB
Release files / pyspotlightarchiver-1.2.2.tar.gz
| Download URL | pyspotlightarchiver-1.2.2.tar.gz |
|---|---|
| Size | 136.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8650e3b397b6d964e1d56eb2db22e2e6a819b4ba575eb7c4e6fef2829bb84c9a
|
|
BLAKE2b-256 checksum How to use checksums |
5e81c29c07e0a08d29770335349ccca1309f54d63853b2c226b120ba6aa2f1b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 2, 2026.
Transparency logRelease files / pyspotlightarchiver-1.2.2-py3-none-any.whl
| Download URL | pyspotlightarchiver-1.2.2-py3-none-any.whl |
|---|---|
| Size | 42.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ebef1e2abe3cb1d3da5fa2841e460ce50519cdb387754ae4404c955bacf0e827
|
|
BLAKE2b-256 checksum How to use checksums |
bdcc8febb9a6b591611ef6c284ece14960517cf80bed1f19cac25e11cfc8ceb5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 2, 2026.
Transparency logSecurity for pyspotlightarchiver 1.2.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pyspotlightarchiver-1.2.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 2, 2026.
Transparency logA 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.