This project contains two Python scripts for managing photos stored in iCloud: one for downloading all photos and another for deleting all photos.
Before installing the dependencies, you can set up a virtual environment. This keeps the project's libraries separate from your global Python environment.
- Create a virtual environment:
python -m venv env
- Activate the virtual environment:
-
On Windows:
env\Scripts\activate
-
On Unix or MacOS:
source env/bin/activate
- Clone the repository:
git clone https://github.com/zakirangwala/icloud-photo-manager.git
cd icloud-photo-manager
- Install the required Python packages:
pip install -r requirements.txt
To download all your photos from iCloud, run:
python download-photos.py
To delete all your photos from iCloud, run:
python delete-photos.py
- Duration: Depending on the number of photos and your internet bandwidth, each script might take from several minutes to a couple of hours to complete.
- Credentials: You will need to provide your iCloud credentials to use these scripts. Ensure you handle these securely.
- Backup: Before using the delete script, make sure to back up your photos. This action is irreversible.
- Testing: It is highly recommended to test the scripts with a smaller set of data before proceeding with the full batch.
Use these scripts at your own risk. The author is not responsible for any loss of data resulting from the use of these scripts.
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome. Please open an issue or submit a pull request with your improvements.