Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check out python package for downloading youtube as MP3 #1

Open
barrettk opened this issue Sep 7, 2023 · 0 comments
Open

Check out python package for downloading youtube as MP3 #1

barrettk opened this issue Sep 7, 2023 · 0 comments
Assignees

Comments

@barrettk
Copy link
Member

barrettk commented Sep 7, 2023

This package runs a GUI for downloading a youtube file in various formats (see video in their readMe file). I think we could extract the relevant parts for use within the app (see here and here). We could embedd their app within ours as well, though A) I dont think their UI looks all that nice, and B) I think it has extra stuff we dont really need. I do like how you can specify multiple youtube videos at the same time and see their progress though (you could add a list of videos before dance to speed up the setup later).

From their readme:

youtube-dl-gui main window

  • As an aside, downloading the MP4 file could be of interest too. I think it would be nice for the user to look at something while they play the song, though perhaps something else (like these plots) makes more sense to fill that space
  • This package does require downloading youtube-dlg, which I saw as a requirement for doing this within R as well. The function I had developed for downloading youtube files was somewhat similar:
    download_youtube <- function(url = "https://youtu.be/F8Zt3mYlOqU", filename = "temp.mp4"){
      checkmate::assert_true(fs::path_ext(filename) == "mp4")
    
      # You need youtube-dl: https://ytdl-org.github.io/youtube-dl/download.html
      # MacOS: brew install youtube-dl
      # TODO: hopefully replace this with R/python package that does not require `youtube-dl`
      system(glue::glue("youtube-dl {url} -o {filename}"))
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants