Skip to content

Extract and store file/folder size information from a Google Drive account in a tree form.

Notifications You must be signed in to change notification settings

amzon-ex/gdrive-tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gdrive-tree

Extract and store file/folder size information from a Google Drive account in a tree format.

To use this app, you first need to obtain OAuth 2.0 client ID from the Google API Console. Instructions for the same can be found here.

Rename the obtained json file to client_secrets.json and you're good to go. The first time you run the script, an authorization procedure will be initiated and an access token will be obtained and saved to mycreds.txt.

Then it's as simple as running python buildtree.py.

For a quick and dirty visualization of the XML file, use python x2html.py. An output HTML will be generated in the out folder.

For a prettier visualization, use python x2html-tree-alt.py. Since this one uses javascript, the page might not function as expected unless you start a local server. This is also as easy as doing python -m http.server in the out folder.

Requirements:

  • pydrive
  • lxml

About

Extract and store file/folder size information from a Google Drive account in a tree form.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published