Skip to content

Instantly share code, notes, and snippets.

@dcorney
dcorney / yt_transcripts.py
Created August 21, 2024 08:32
Getting video transcripts
import re
import json
import string
import requests
from langdetect import detect
def mostly_english(sentences):
"""Quick check to see if most sentences are probably English"""
en_count = 0