Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xob0t/photos-storage-cleaner
Tool to delete media from Google Photos that is taking up storage.
https://github.com/xob0t/photos-storage-cleaner
cleaner google-photos mass-delete official-api selenium-python
Last synced: about 1 month ago
JSON representation
Tool to delete media from Google Photos that is taking up storage.
- Host: GitHub
- URL: https://github.com/xob0t/photos-storage-cleaner
- Owner: xob0t
- Created: 2023-12-26T03:07:45.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-08T12:15:39.000Z (about 1 year ago)
- Last Synced: 2024-01-08T14:12:35.052Z (about 1 year ago)
- Topics: cleaner, google-photos, mass-delete, official-api, selenium-python
- Language: Python
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Use [Google Photos Toolkit](https://github.com/xob0t/Google-Photos-Toolkit) instead
A few scripts to help you delete all media from your google photos that is taking up storage in your account.
Dependencies:
```
pip install google-auth google-auth-oauthlib google-api-python-client undetected-chromedriver selenium-wire rich```
## 1. photos_db_update.py
Uses official api to create a db with all your media uploaded to google photoscredentials.json - https://developers.google.com/photos/library/guides/get-started#enable-the-api
## 2. chrome_google_login.py
Starts chromedriver for you to log into google.
Google photo's media info panel must be opened for the next script to work.## 3. delete_with_chrome.py
For every media file in the db, opens a URL in chrome and checks if it takes up space or not.
Deletes the media if it is, otherwise skips it. Marks in in the db accordingly.