Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cyberboysumanjay/gdrivedownloader

Just enter the direct URL of the file and it will upload it to Google Drive and print download link of it.
https://github.com/cyberboysumanjay/gdrivedownloader

drive-uploader google-drive python python3 remote remote-downloader uploader url

Last synced: about 2 months ago
JSON representation

Just enter the direct URL of the file and it will upload it to Google Drive and print download link of it.

Awesome Lists containing this project

README

        

Google Drive Uploader
=====================

Simple script to upload files on Google Drive through Direct URL and gives the direct drive download link.

# Description
Script uses predefined Drive APIs Client ID and Client Secret (Please don't abuse the credentials)

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 the script prints direct download url.

# Requirements
* Python >= 2.6 [Tested on Python 3.6.7]
* [google-api-python-client](http://code.google.com/p/google-api-python-client/)
* python-httplib2
* urllib
* sys
* logging
* mimetypes
* apiclient
* oauth2client
* wget

#### Install all requirements using this command:
`sudo -H pip3 install -r requirements.txt`
# Example Usage:
#### Note: Make sure you've given the bash file permission to execute
`sudo chmod +x start.sh`

#### You can also start the file without using bash using the command

`python3 gdrive_upload.py`

> cyberboy@MonsterMachine:~/python/gdrive/Gdrivedownloader$ ./start.sh
>Enter the Direct URL of the file you want to download:
>https://cyberboysumanjay.github.io/img/jetpacktocat.jpg
>Beginning file download...
>This may take time depending upon the file size.
>Please be patient
>jetpacktocat.jpg is successfully downloaded locally
>Starting Google Drive upload.....
>Here is your Google Drive link: https://drive.google.com/uc?id=1y3qM4xqNTUf2B_NWAdBeBeO7F2lumtMw&export=download
>Performing local cleanup.........
>Everything done... Exiting!

# Credits
### kshcherban for his lovely work [here](https://github.com/kshcherban/gdrive_uploader)