title: Download m3u8 juicycode using python
body: <p>I am trying to download the video playing in the browser, I am able to get the m3u8 url using selenium. These urls show in the network tab in developer tools -</p>
  <p><a href="https://i.stack.imgur.com/8Fpy6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8Fpy6.png" alt="Developer tools" /></a></p>
  <p>When I try to access the url in the browser or via python I get 404 Not found or &quot;http.client.RemoteDisconnected: Remote end closed connection without response&quot; but the video plays fine in the browser and the following parts start getting downloaded -</p>
  <p><a href="https://i.stack.imgur.com/rz0AQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rz0AQ.png" alt="Video being downloaded" /></a></p>
  <p>How do I download the video?</p>