Giter Site home page Giter Site logo

gdrive_link_transformer's Introduction

Generates direct Google Drive links (https://drive.google.com/uc?export=download&id=<ID>) from standard sharing links (https://drive.google.com/file/d/<ID>/view or https://drive.google.com/open?id=<ID>).

The script takes the link from the clipboard, checks if it is a Google Drive sharing link and copies direct link to the clipboard, shows notification.

Windows 10 screenshot

Pop_OS 19.10 screenshot

Also it can be used as a normal CLI app taking the link from the arguments and outputting the result.

Terminal screenshot

Should work on Windows, Linux and (not tested) Mac OS.

Usage

Download the binaries for your OS from the Releases page or see the section below to run from source code.

For Linux you may need to install one of the packages listed here https://pyperclip.readthedocs.io/en/latest/introduction.html#not-implemented-error for clipboard management, such as sudo apt-get install xclip.

Run gdrive-direct-link (gdrive-direct-link.exe for Windows) when you have a Google Drive sharing link in the clipboard, or gdrive-direct-link https://drive.google.com/file/d/qwe123456/view in terminal.

Running from source code

Requirements:

Install dependencies by executing poetry install. For Linux use poetry install --extras dbus (unless you need just the CLI mode).

Use PyTest to run tests: poetry run pytest or in PyCharm.

Use poetry run gdrive-direct-link to run the script as described in the Usage section.

Building binary

Run poetry run pyinstaller gdrive-direct-link.spec

The result will be in the dist dir: dist/gdrive-direct-link/gdrive-direct-link

gdrive_link_transformer's People

Contributors

alexp11223 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  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.