View on GitHub

GDrive-Streaming-Link

Stream from gdrive link in your favourite video player using your GDrive API_KEY.

GDrive-Streaming-Link

Stream from GDrive link in your favourite video player using your GDrive API_KEY.

Contents

Requirements

  1. file_id from GDrive link.
  2. api_key from your Google Cloud Console.

How to?

How to get api_key?

api_key can be obtained from Google Cloud Console. Following pictures guide you on how to get api_key:

  1. Go to Google Cloud Console and create a new project. Create a Project

  2. Now click on APIs & Services and go to Credentials. Credentials

  3. Click on Create Credentials and then on API key and copy. API Key

  4. Copy and save the api_key somewhere.

stream.py

This is where you obtain the streamable link. As this is my first project, I thought of writing it in python with just two functions. That is print and input. You can get the py from here

prompt = "Enter your file_id:" 
file_id = input(prompt)

prompt = "Enter your api_key:"
api_key = input(prompt)

print(f"https://www.googleapis.com/drive/v3/files/{file_id}/?key={api_key}&alt=media")

Credits

Thanks to Yuno.