kshcherban / gdrive_uploader

Google Drive file uploader

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Google Drive Uploader

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

pip install -r requirements.txt

Configuration

Usage

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

About

Google Drive file uploader


Languages

Language:Python 100.0%