PyDriveBrowser is a simple Command Line Interface to browse through Google Drive.
It is based on PyDrive2 and Pick.
Install PyDriveBrowser using pip:
pip install pydrivebrowser
To setup credentials (OAuth 2.0 Client IDs or Service Account credentials) check out the documentation of PyDrive2.
from pydrivebrowser import CliBrowser
c = CliBrowser()
url = 'https://drive.google.com/drive/folders/1APzr67aMpXSkcMNlA0rWaJHvMoXwb9o8?usp=sharing'
f = c.select_file(url)
print(f'selected file: {f["title"]}')
Simply pass a google drive url to CliBrowser.select_file() and get a GoogleDriveFile back.
For more information about the google drive files and authentication, consult PyDrive2's documentation.
