{"id":24995610,"url":"https://github.com/xob0t/google_photos_web_client","last_synced_at":"2025-04-22T11:45:34.382Z","repository":{"id":275155882,"uuid":"925234334","full_name":"xob0t/google_photos_web_client","owner":"xob0t","description":"Reverse engineered Google Photos web API client.","archived":false,"fork":false,"pushed_at":"2025-03-23T00:00:48.000Z","size":76,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T00:25:27.093Z","etag":null,"topics":["google-photos","python","reverse-engineering","unofficial"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xob0t.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-01-31T13:46:33.000Z","updated_at":"2025-03-23T00:00:51.000Z","dependencies_parsed_at":"2025-01-31T15:32:17.419Z","dependency_job_id":"d1dcbe0c-f62b-4087-9262-f508033fe191","html_url":"https://github.com/xob0t/google_photos_web_client","commit_stats":null,"previous_names":["xob0t/google_photos_web_client"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xob0t%2Fgoogle_photos_web_client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xob0t%2Fgoogle_photos_web_client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xob0t%2Fgoogle_photos_web_client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xob0t%2Fgoogle_photos_web_client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xob0t","download_url":"https://codeload.github.com/xob0t/google_photos_web_client/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250237629,"owners_count":21397399,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["google-photos","python","reverse-engineering","unofficial"],"created_at":"2025-02-04T15:39:18.233Z","updated_at":"2025-04-22T11:45:34.335Z","avatar_url":"https://github.com/xob0t.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# google_photos_web_client\n\n## Example\n\n```python\nfrom gpwc import Client, payloads\ncookies_txt = \"cookies.txt\"\nlib_page_taken = payloads.GetLibraryPageByTakenDate()\nstorage_quota = payloads.GetStorageQuota()\n\n# single payload\nclient = Client(cookies_txt)\nresponse = lib_page_taken.execute(client)\nfor item in response.data.items:\n    print(item.media_key)\n\n# or multiple payloads at once\nwith Client(cookies_txt) as client:\n    response = client.send_api_request([lib_page_taken, storage_quota])\nfor item in response:\n    print(item)\n```\n\n## Proper way to extract the cookies\n\n1. Install [Get cookies.txt LOCALLY](https://chromewebstore.google.com/detail/Get%20cookies.txt%20LOCALLY/cclelndahbckbenkjhflpdbgdldlbecc)\n2. Allow `Get cookies.txt LOCALLY` to run in private/incognito windows\n3. Open a new private browsing/incognito window and log into Google\n4. Open a new [Google Photos](https://photos.google.com/) tab, navigate to your libray page\n5. Open a new empty tab\n6. Close the Google Photos tab\n7. Export all cookies from the browser with \"Export All Cookies\" button in `Get cookies.txt LOCALLY`\n8. Close the private browsing/incognito window so the session is never opened in the browser again\n\n### My Other Google Photos Projects\n\n* Python client with unlimited uploads: [https://github.com/xob0t/gphotos_mobile_client](https://github.com/xob0t/gphotos_mobile_client)\n* Disguise any file as media for GP to accept and store it: [https://github.com/xob0t/gp-file-hide](https://github.com/xob0t/gp-file-hide)\n* Manage library with bulk operations: [https://github.com/xob0t/Google-Photos-Toolkit](https://github.com/xob0t/Google-Photos-Toolkit)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxob0t%2Fgoogle_photos_web_client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxob0t%2Fgoogle_photos_web_client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxob0t%2Fgoogle_photos_web_client/lists"}