Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 1.96 KB

File metadata and controls

41 lines (30 loc) · 1.96 KB

GoogleDrive_downloader_ipywidgets

Easily search for files in Google drive folders and download them with the press of an ipywidget button

ipywidget_dashboard

Two classes:

  1. DriveDownloader: Thin wrapper around the gdrive documentation's tutorial
  2. WidgetDriveDownloader(DriveDownloader) Inherited class that adds the ipywidgets for inputting search queries and buttons to search and download

Notes:

  • Can use the DriveDownloader class independently in scripts (without ipywidgets)
  • Easily customize the two classes to your needs.
  • Public Google Drive folder for testing
  • PRs welcome too!

Installation

git clone https://github.com/ljburtz/GoogleDrive_downloader_ipywidgets.git
cd GoogleDrive_downloader_ipywidgets
conda env create -f environment.yml
conda activate gdrive
python -m ipykernel install --user --name=gdrive
jupyter notebook gdrive_downloader.ipynb

Get your google drive credentials: client_id.json by following this tutorial by FIRE Capital One Machine Learning of UMD.edu

Play

  • Run all cells
  • Authenticate with your personal gdrive credentials: edit the path to where you downloaded client_id.json
  • Type the inputs into the ipywidget text boxes: choose inside which gdrive folder to look, which type of file you want to download, and where to save the downloaded files on your PC
  • Click on the search buttons, then the download button

Sources / Resources