Skip to content

Instantly share code, notes, and snippets.

View woshishabii's full-sized avatar
🍥
Debian 30 Years !

大傻逼 woshishabii

🍥
Debian 30 Years !
  • China Shandong
  • 14:55 (UTC -12:00)
View GitHub Profile
@theychx
theychx / ytdl_totalsize.py
Last active October 2, 2023 08:31
Script that uses youtube-dl to calculate total size of all videos in a playlist (also works with single videos). Now at this repo: https://github.com/theychx/totalsize
#! /usr/bin/env python3
import math
import sys
import youtube_dl
BEST_FORMAT = "bestvideo+bestaudio/best"