title: Getting YouTube livestream URL
body: <p>I need a way to get the URLs of a YouTube live stream, ideally URLs for each quality (i.e. 240p, 360p).</p>
  
  <p>What I tried so far:</p>
  
  <ol>
  <li>Use Wireshark (Don't know how to apply proper filters)</li>
  <li>Use urlsnoopers (Couldn't find anything that works in Linux)</li>
  <li>Get the m3u8 URL from the page source (Couldn't control quality)</li>
  <li>Use Firefox developer tools to analyze the network (Would not get the m3u8 URL for some links)</li>
  </ol>
  
  <p>On another note I noticed that some of the lower quality stream URL links seem to get stuck after a few seconds. Any idea why?</p>