This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
import re | |
from more_itertools import unique_everseen | |
with open("urls.json", "r", encoding="utf-8") as fp: | |
urls = json.load(fp) | |
# lots of regex to extract video ID from different types of YouTube links | |
def get_id(url): |