Skip to content

aleblanc/gdrive_uploader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Google Drive Uploader

Add create folder testdffvghqsdqsdfdgfdgfdgjhdfgdfgghdwxfdsfsdf Add send email automatique

Simple script to upload files on Google Drive.

Description

Script uses predefined Drive APIs Client ID and Client Secret

It takes upload file as command line argument, uploads it and sets permissions that anyone who has download link can download the file.
After file has been uploaded script prints download url.

Requirements

Configuration

  • use the wizard to generate client ID and client secret strings (don't download client_secret.json). Choose other for application type.
  • edit the script and modify the variables with the generated keys :
CLIENT_ID = 'xxx'
CLIENT_SECRET = 'yyy'

Example

insider@laptop:~/Documents/scripts$ echo 'this is test' > test.txt
insider@laptop:~/Documents/scripts$ ./gdrive_upload.py test.txt 
https://docs.google.com/a/pawned.ru/uc?id=0B3TLzHm0uDyjV3Rvc2o0eklYRG8&export=download
insider@laptop:~/Documents/scripts$ wget -q -O - "https://docs.google.com/a/pawned.ru/uc?id=0B3TLzHm0uDyjV3Rvc2o0eklYRG8&export=download"
this is test

About

Google Drive file uploader

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%