Skip to content

Instantly share code, notes, and snippets.

@volpefoxx
volpefoxx / add_urls_to_playlist.py
Last active February 17, 2022 08:56 — forked from anonymous/add_urls_to_playlist.py
Make YouTube playlist from posts in Facebook group.
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):