bellingcat / auto-archiver

Automatically archive links to videos, images, and social media content from Google Sheets (and more).
https://pypi.org/project/auto-archiver/
MIT License
489 stars 53 forks source link

Oauth integration with Google Drive so can use a real user and not a service account #56

Closed djhmateer closed 1 year ago

djhmateer commented 1 year ago

Have been using this code for a month and it seems good. Token refreshes are handled.

Also updated a 'trashed = false' query for google drive so nothing in the recycle bin of google drive is picked up.

msramalho commented 1 year ago

Can you share a link where the 15GBs limit is documented? is this per a fixed time window or in total?

Found it here that this is because it saves to the personal account of the email you are using and not the owner of the shared folder, got it

msramalho commented 1 year ago

NOTE: renamed oauth_token_file_path_and_name to oauth_token_filename

msramalho commented 1 year ago

ready in dev, I've tested it and works as expected, added clarification about the 15GB limit, that is because of a personal account, the token allows the storage to count towards the owner of the folder vs the developer account