pangyuteng / make-og-pixel-great-again

5 stars 2 forks source link
** disclaimer **

this is just a code repo that i use to archive scripts.
this is not a software package.
run and edit the scripts at your own risk!

for those that are terminal-inclined or do not know how to read and edit code, please think twice before you venture further down ...

lastly, all the best to the tinkerers and hackers. keep on building.

Locate photos that takes up space in Google Photos, then upload using your OG Pixel.

get photo urls

refs-google-photos-api:

https://github.com/ido-ran/google-photos-api-python-quickstart
https://github.com/polzerdo55862/google-photos-api
https://console.cloud.google.com/apis/credentials

* redirect url (remember to add `/` after port 8000): `http://127.0.0.1:8000/`
python fetchall.py

find photos that takes up space.

{
  "email":"asdf@ok.com",
  "password":"verysecret",
  "backupemail":"bak@aol.com"
}
python crawlall.py

refs-selenium:

https://stackoverflow.com/questions/66209119/automation-google-login-with-python-and-selenium-shows-this-browser-or-app-may
https://www.scrapingbee.com/blog/selenium-python

https://selenium-python.readthedocs.io/locating-elements.html

wget http://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_114.0.5735.337_amd64.deb

comment on selenium: had a hard time finding the right version and syntax to work - there are various tweaks online to make Google login work, and they will eventually not work, given Google actively updating to prevent automated logins and routing devs to their API - which at the time did not contain what i'm looking - the metadata per photo item does not show you if each image takes up google storage or not.

for new photos, sync photos using your old OG Pixel.