title: Download zip file without extraction from direct link
body: <p>i'm trying to make a script that downloads files from direct links (such as this one : &quot;http://beatsaver.com/api/download/key/f55c&quot; ) with a Python script.
  I've tried various code from here or / other website to either end up with a corrupted zip file or a</p>
  <blockquote>
  <p>&quot;zipfile.BadZipFile: File is not a zip file&quot;.</p>
  </blockquote>
  <p>I tried with this : (zip corrupted)</p>
  <pre><code>url = &quot;http://beatsaver.com/api/download/key/f55c&quot;
  resp = requests.get(url)
  zname = os.path.join('BeatSong', &quot;song_test.zip&quot;)
  zfile = open(zname, 'wb')
  zfile.write(resp.content)
  zfile.close()
  </code></pre>
  <p>or 3 or 4 variation of this : ( raise : &quot;zipfile.BadZipFile: File is not a zip file&quot;)</p>
  <pre><code>url = &quot;http://beatsaver.com/api/download/key/f55c&quot;
  resp = requests.get(url)
  zip = zipfile.ZipFile(io.BytesIO(resp.content))
  zip.extractall(&quot;/BeatSong&quot;)
  </code></pre>
  <p>The link download the zip automatically when loaded
  Any ways of retrieving the zip file as it would be like when I download it from the browser?</p>