Use 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
Uses official api to create a db with all your media uploaded to google photos
credentials.json - https://developers.google.com/photos/library/guides/get-started#enable-the-api
Starts chromedriver for you to log into google. Google photo's media info panel must be opened for the next script to work.
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.