Skip to content

Instantly share code, notes, and snippets.

@akash-gajjar
Last active May 21, 2026 20:22
Show Gist options
  • Select an option

  • Save akash-gajjar/24fc183f6b25c74750606606f2319d01 to your computer and use it in GitHub Desktop.

Select an option

Save akash-gajjar/24fc183f6b25c74750606606f2319d01 to your computer and use it in GitHub Desktop.
Download videos from TLDV.io
from datetime import datetime
from os import system
import requests
import json
## Please install ffmpeg before running this script and make sure it's in your PATH
## brew install ffmpeg
## Please install requests before running this script
## pip3 install requests
## download video from tldv.io
##
## 1. Go to https://tldv.io/
## 2. Login
## 3. Go to the meeting you want to download
## 4. Copy the URL of the meeting
## 5. Open the developer tools (F12)
## 6. Go to the network tab
## 7. Refresh the page
## 8. Find the request to https://gw.tldv.io/v1/meetings/64145828ced74b0013d496ce/watch-page?noTranscript=true
## 9. Copy the auth token from the request headers
## 10. Run this script and paste the URL and auth token
## 11. python3 tldv.py
url = input("Please paste the URL of the meeting you want to download: ")
meeting_id = url.split("/")[-1]
print("\rFound meeting ID: ", meeting_id)
auth_token = input("Auth token: ")
data = requests.get(
f"https://gw.tldv.io/v1/meetings/{meeting_id}/watch-page?noTranscript=true",
headers={
"Authorization": auth_token,
},
)
try:
response = json.loads(data.text)
meeting = response.get("meeting", {})
name = meeting.get("name", "No name")
createdAt = meeting.get("createdAt", datetime.now())
source = response.get("video", {}).get("source", None)
date = datetime.strptime((createdAt), "%Y-%m-%dT%H:%M:%S.%fZ")
normalised_date = date.strftime("%Y-%m-%d-%H-%M-%S")
filename = f"{normalised_date}_{name}"
filename_ext = ".mp4"
command = f'ffmpeg -i {source} -c copy "{filename}.{filename_ext}"'
json_filename = f'{filename}.json'
with open(json_filename, "w") as f:
f.write(data.text)
print(command)
print("Downloading video...")
system(command)
except:
print("Error encountered")
print(data.text)
@roycordero

Copy link
Copy Markdown

Hello, unfortunately, I think the last link on Mega has stopped working :( and ffmpeg doesn't work for me on the other one.

@ofcRS

ofcRS commented Feb 28, 2026

Copy link
Copy Markdown

I created the plugin for yt-dlp https://github.com/ofcRS/yt-dlp-tldv

@BouchantoufZakaria

Copy link
Copy Markdown

the problem with this that is does not support concurencey i take an hour to download an hour long vedio ,
i created a Go version that do it in 5 minutes , check this out :

https://github.com/BouchantoufZakaria/tldv-downloader

@BouchantoufZakaria

Copy link
Copy Markdown

it's not clear on how to get the authorization token

c

@Fabiano-Couto

Copy link
Copy Markdown

@Fabiano-Couto

Fabiano-Couto commented Mar 22, 2026

Copy link
Copy Markdown

Just download, create an account on app, confirme e-mail.. save token.. not need to enter token all the time.. choose folder once to save videos.. easy and handy to use.

https://drive.google.com/file/d/1ToHPKMRpvcUVTMIYQ5x9Gxz7kD3PRV-G/view?usp=sharing

@vitorgabrieldev

Copy link
Copy Markdown

@Fabiano-Couto Está dando que o arquivo está na lixeira do proprietário.

@Fabiano-Couto

Copy link
Copy Markdown

@Fabiano-Couto

Copy link
Copy Markdown

já está tudo embedado.. a ideia é executar, colocar o token e baixar.

@ThuongPhan662003

Copy link
Copy Markdown

now it don't work. Maybe It is blocked

@domlobojr

Copy link
Copy Markdown

@domlobojr

Copy link
Copy Markdown

Testei todos os scripts. Na data de hoje não estão funcionando. Há algum que hoje vocês possam compartilhar que esteja funcional?

@Fabiano-Couto

Copy link
Copy Markdown

O meu funciona.. baixo reuniões todos os dias. So o meu está funcionando.. acho que ele não está no drive mais.. mas o meu funciona

@domlobojr

Copy link
Copy Markdown

O meu funciona.. baixo reuniões todos os dias. So o meu está funcionando.. acho que ele não está no drive mais.. mas o meu funciona

Você não compartilhou o codigo. Apenas um executável. Que foi bloqueado pelo antvirus. Voce pode compartilhar o codigo e como implementar?

@Fabiano-Couto

Copy link
Copy Markdown

ah sim.. o arquivo já está compilado com tudo que precisa pra rodar.. eu embedei nele tudo pra evitar erros.. o que eu tive que fazer é quebrar a criptografia da cloudflare.. mas se quiser testar.. ele não vai instalar nada.. é um executável compilado com tudo embutido.. ffmpeg etc.

@businesssridharb

Copy link
Copy Markdown

where we can find authorization code?

@Fabiano-Couto

Fabiano-Couto commented Apr 19, 2026 via email

Copy link
Copy Markdown

@F3rr021

F3rr021 commented Apr 29, 2026

Copy link
Copy Markdown

alguien probo ese virus que monto este pendejo?

@Fabiano-Couto

Fabiano-Couto commented Apr 29, 2026 via email

Copy link
Copy Markdown

@Suwot

Suwot commented May 7, 2026

Copy link
Copy Markdown

Hey everyone, I've added support for tldv.io manifests in my browser downloader extension (it's free), works for me – could you give it a shot? As I was developing this based on user report and can't verify if it works everywhere on tldv.io

Max Video Downloader in Chrome Web Store

Screenshot 2026-05-07 at 10 53 39

@Fabiano-Couto

Fabiano-Couto commented May 7, 2026 via email

Copy link
Copy Markdown

@mabitten

Copy link
Copy Markdown

Max Video Downloader

funcionando aqui, muito bom obrigado!

@rigellgh

rigellgh commented May 21, 2026

Copy link
Copy Markdown

Hi, @Suwot it works perfectly. I'd been searching for days for a way to download my classes; you've saved my life. I downloaded and tested your program @Fabiano-Couto yesterday, and today I noticed it downloaded almost 1100 video clips in TS format from my original video. I still don't know how to merge them or how it works. Thanks to both of you.

@Fabiano-Couto

Fabiano-Couto commented May 21, 2026 via email

Copy link
Copy Markdown

@Suwot

Suwot commented May 21, 2026

Copy link
Copy Markdown

Hi, @Suwot it works perfectly. I'd been searching for days for a way to download my classes; you've saved my life.

Happy to hear that! Thank you for taking the time to share the feedback 🤝

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment