title: How do I convert Youtube Videos that download as a .webm to .mp3 in python (within the code itself)
body: <p>My code successfully downloads the Youtube video, but it isn't a .mp3 file and I can't find anything that explains how to convert WebM files to mp3 within the python code itself.</p>
  
  <p>I realize that my approach to solving this might also be wrong, so any pointers in the right direction would be appreciated.</p>
  
  <p>My code:</p>
  
  <pre><code>import pafy
  
  url = input(str("Song URL: "))
  
  pafy.new(url).getbestaudio().download()
  </code></pre>
  
  <p>(not sure if this matters, but I'm on windows)</p>