title: How can I download a file that is offered to me to download through an http request?
body: <p>I'm trying to download a stored file on file.io, but the problem is that I get a 2kb file. How can I download it?
  When opening the link in the browser I get the download window. Here there is the code I'm using. </p>
  
  <pre><code>url = "https://www.file.io/"
  r = requests.get(url, allow_redirects=True)
  filename = "filedownloaded"
  open(filename, 'wb').write(r.content)
  </code></pre>