Skip to content

Instantly share code, notes, and snippets.

@volpefoxx
volpefoxx / discogs_collection_to_youtube_playlist.py
Last active September 21, 2023 10:05
Gets a user's Discogs collection and places all videos from release pages into a YouTube playlist
import requests
import json
import re
from more_itertools import unique_everseen
import time
from oauth2client import client, GOOGLE_TOKEN_URI, GOOGLE_REVOKE_URI
import httplib2
# INPUTS
@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):