title: How to handle download pop up window using Python and get the file saved?
body: <p>I have a link, which contains downloadble file,now when i am putting that link onto the browser, and hit <code>ENTER</code> a popup window is coming to download. Now using Python can we save that file in local machine?</p>
  
  <p>say downloadable link :  </p>
  
  <pre><code>https://xyz.test.com/aems/file/filegetrevision.do?fileEntityId=8120070&amp;cs=LU31NT9us5P9Pvkb1BrtdwaCrEraskiCJcY6E2ucP5s.xyz
  </code></pre>
  
  <p><strong>Code</strong></p>
  
  <p>it is for preparing the link: but finally i couldn't find a way how to handle this:</p>
  
  <pre><code>for a in soup.find_all('a', {"style": "display:inline; position:relative;"}, href=True):
      href = a['href'].strip()
      href = "https://xyz.test.com/" + href
  print(href)
  </code></pre>
  
  <p><a href="http://i.stack.imgur.com/5nIcZ.png" rel="nofollow">Download window</a></p>