Skip to content

Tweetus-Bot/GDrive-Streaming-Link

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

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 file_id?

  • file_id can be obtained:
    • from a GDrive link which is already publicly (or)
    • by making a shareable link from a your GDrive
  • For example, here, https://drive.google.com/open?id=1hpBqbuHQr6UhVawkcsANAe63P70s9Ycu 1hpBqbuHQr6UhVawkcsANAe63P70s9Ycu is the file_id.

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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages