vikas5914 / google-photos-backup

Backup photos from Google Photos using Playwright.
MIT License
211 stars 22 forks source link

Possible to log quota status somewhere? #9

Open m1ndy opened 9 months ago

m1ndy commented 9 months ago

Basically, the answer to this: https://webapps.stackexchange.com/questions/168287/how-to-bulk-identify-google-photos-media-items-that-count-towards-storage-quota

If you were to start adding this feature, where and how would you go about it? (I can attempt to code it up and submit a PR then)

Also, for some media items, Google provides a location based on "location history and other signals" which is great in the absence of camera location tag in the EXIF... Do we currently store that somewhere?

vikas5914 commented 8 months ago

@m1ndy

  1. We dont store and do anything with the storage quota of the google backup. This script is downloading photos from Google photo, not for uploading.

  2. Can you give me example of "location history and other signals" ?

m1ndy commented 8 months ago
  1. If you look at the linked SE question, the quest is to scrape and store information of each photo/video about the string in the info card having the string 'This item doesn't take up space in your account storage.'. This information can help a user bulk identify (with your playwright project) which items to delete and which to not.

  2. Looks like they used to use Location History but recently decoupled that. Now they use computer vision based landmark ID and other signals. Google Photos estimates your location from information such as landmarks detected in your photo and locations in your other photos. from their support article: https://support.google.com/photos/answer/6153599

In the below photo, I want to scrape the green box info and store it in a db/csv/file along with the photo URL. The red box should answer your point #2. screen 2024-01-09 at 19 30 22@2x