title: How to download faster youtube audio or video file?
body: <p>I get youtube video download link from youtube-dl. </p>
  
  <blockquote>
    <p>Example Link: <a href="https://r4---sn-hgn7rne7.googlevideo.com/videoplayback?id=o-AFAhZy_ewhPuT9l2wWK4OXaCBsUmBIWX0EqumOSUHzBT&amp;itag=140&amp;source=youtube&amp;requiressl=yes&amp;pl=22&amp;ei=zirdXPuFL6uM8gSPj7ygCg&amp;mime=audio%2Fmp4&amp;gir=yes&amp;clen=4081843&amp;dur=252.168&amp;lmt=1557823006263504&amp;fvip=6&amp;keepalive=yes&amp;c=WEB&amp;txp=5531432&amp;ip=2604%3Aa880%3A800%3Ac1%3A%3Afd%3A0&amp;ipbits=0&amp;expire=1558019887&amp;sparams=clen,dur,ei,expire,gir,id,ip,ipbits,itag,lmt,mime,mip,mm,mn,ms,mv,pl,requiressl,source&amp;key=cms1&amp;signature=1F0A1261C8B008BB96D33F3268C673FD171790CA.7F63590873FF47EC4E05D28F74D6684CCC1154C1&amp;ratebypass=yes&amp;utmg=ytap1&amp;title=Sezen_Aksu_-_Aktan_Ne_Haber_Official_Audio.m4a&amp;cms_redirect=yes&amp;mip=46.196.21.103&amp;mm=31&amp;mn=sn-hgn7rne7&amp;ms=au&amp;mt=1557998299&amp;mv=m" rel="nofollow noreferrer">https://r4---sn-hgn7rne7.googlevideo.com/videoplayback?id=o-AFAhZy_ewhPuT9l2wWK4OXaCBsUmBIWX0EqumOSUHzBT&amp;itag=140&amp;source=youtube&amp;requiressl=yes&amp;pl=22&amp;ei=zirdXPuFL6uM8gSPj7ygCg&amp;mime=audio%2Fmp4&amp;gir=yes&amp;clen=4081843&amp;dur=252.168&amp;lmt=1557823006263504&amp;fvip=6&amp;keepalive=yes&amp;c=WEB&amp;txp=5531432&amp;ip=2604%3Aa880%3A800%3Ac1%3A%3Afd%3A0&amp;ipbits=0&amp;expire=1558019887&amp;sparams=clen,dur,ei,expire,gir,id,ip,ipbits,itag,lmt,mime,mip,mm,mn,ms,mv,pl,requiressl,source&amp;key=cms1&amp;signature=1F0A1261C8B008BB96D33F3268C673FD171790CA.7F63590873FF47EC4E05D28F74D6684CCC1154C1&amp;ratebypass=yes&amp;utmg=ytap1&amp;title=Sezen_Aksu_-_Aktan_Ne_Haber_Official_Audio.m4a&amp;cms_redirect=yes&amp;mip=46.196.21.103&amp;mm=31&amp;mn=sn-hgn7rne7&amp;ms=au&amp;mt=1557998299&amp;mv=m</a></p>
  </blockquote>
  
  <p>When I download it from any browser it downloads in 5 seconds but when I try to download it from python, the link downloads in 1 minute. I tried same size in different networks but I got same result.</p>
  
  <p>For Python I use this:</p>
  
  <pre><code>   import urllib
     urllib.urlretrieve(url,"file.m4a")
  </code></pre>
  
  <p>I don't know google expects me any header or something else to make download faster.</p>