GithubHelp home page GithubHelp logo

wajika / backup-google-drive Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jason022085/backup-google-drive

0.0 1.0 0.0 419 KB

陽明交通大學在2022年11月要砍掉校友的Gsuite帳號雲端硬碟容量到5 GB,本專案用自動化程式下載雲端硬碟並整理資料夾。

License: Apache License 2.0

Python 95.10% Batchfile 4.90%

backup-google-drive's Introduction

backup-google-drive

tags: selenium Windows Python

陽明交通大學在2022年11月要大砍Gsuite雲端硬碟到5 GB, 本專案用自動化程式備份載雲端硬碟。

Step 0: 前置作業

  1. 下載專案資料夾 git clone https://github.com/jason022085/backup-google-drive.git
  2. 打開 terminal 並且進入此專案資料夾目錄底下
  3. 輸入指令安裝套件 pip install -r requirements.txt
  4. 輸入指令執行程式 main.bat (若執行此bat檔,則可以跳過後面的step 1和step2)

Step 1: 下載所有的雲端硬碟

  • email: 你的Gsuite帳號 (私人gmail有安全性問題無法使用)
  • pwd: 你的密碼 (放心,程式不會記住,也不會做壞事)
  • sdrive: 要下載多少個共用雲端硬碟 (預設為 0)
  • 注意:雲端硬碟至少要有一個資料夾才能被下載
  • 注意:程式會控制你的滑鼠鍵盤,執行中請放開雙手等待

請輸入以下指令:

python download_gdrive.py --email [email protected] --pwd mypassword --sdrive 0  

之後,你將看到Chrome被自動打開: image

接下來只要靜靜等待檔案下載完成,完成後要手動關掉瀏覽器

Step 2: 解壓縮且整理下載資料夾

注意: 路徑要用斜線"/"

  • folder: 下載資料夾完整路徑 (用相對路徑可能會出錯) 請輸入以下指令:
python organize_folder.py --folder D:/where/is/the/download/folder  

資料夾被整理前: image

資料夾被整理後(碩班的血汗被合而為一、zip檔解壓縮): image

接下來只要靜靜等待程式運行結束,完成後可以手動刪除原本下載的zip壓縮檔

如有任何問題,請聯絡我: [email protected]

backup-google-drive's People

Contributors

jason022085 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.