'Google colab : How can i mount two google drive accounts?

I have two google accounts each one contains part of my data and i can,t include the data into one drive because of the size limit. So, I want to know if there is a way to mount the two drive accounts into colab.



Solution 1:[1]

You can use auth.authenticate_user() then access your second drive through pydrive API. Then you can move files from your second drive to the first one (mounted with drive.mount()).

from google.colab import auth

auth.authenticate_user()

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Timus