GithubHelp home page GithubHelp logo

itfidele / gdrivedownloader Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cyberboysumanjay/gdrivedownloader

0.0 0.0 0.0 2.24 MB

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

License: MIT License

Python 99.29% Shell 0.71%

gdrivedownloader's Introduction

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
  • 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

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.