Skip to content

Instantly share code, notes, and snippets.

View swapnildavangave's full-sized avatar
🎯
Focusing

swapnil davangave swapnildavangave

🎯
Focusing
View GitHub Profile
@swapnildavangave
swapnildavangave / youtube_to_mp3.py
Created April 5, 2019 12:02
Search and download mp3 using youtubedl.
#!/usr/bin/python3
import subprocess as sbp
import requests
from bs4 import BeautifulSoup
import argparse
command_list = ["python3",
"-m","youtube_dl", "--restrict-filenames" ,
"--ignore-errors", "-x", "--audio-format", "mp3"]