Skip to content

Instantly share code, notes, and snippets.

View LiuKay's full-sized avatar
🐢
Focusing

Kaybee LiuKay

🐢
Focusing
View GitHub Profile
@LiuKay
LiuKay / download_bilibili_audio.py
Created October 25, 2022 14:02
Download and extract Bilibili audio
import os
from pathlib import Path
import youtube_dl
import sys
def extract_audio(code, audio_name='%(title)s'):
# extract the audio from a video (with code <code>)
_opts = {