title: Recording youtube live stream to file in python
body: <p>I want to record youtube live stream and save it to file using python.</p>
  
  <p>I tried with pytube library but it probably works for videos, not for live streams.</p>
  
  <p>I want to record stream and save it to file with video format as avi or something like this.</p>