title: Python: download file from webpage, ashx
body: <p>On <a href="https://www.animasgr.it/EN/Products/Scheda/Anima-Visconteo#cl=A&amp;scheda=quot" rel="nofollow">this</a> webpage there is an "Export to Excel" button.
  The command associated with this link should be:</p>
  
  <p><a href="https://www.animasgr.it/IT/Prodotti/Quotazioni-e-Performance/_layouts/15/GetExcel.ashx?type=QuoteFondo&amp;code=A60A&amp;i=03.06.1985&amp;f=27.10.2016" rel="nofollow">https://www.animasgr.it/IT/Prodotti/Quotazioni-e-Performance/_layouts/15/GetExcel.ashx?type=QuoteFondo&amp;code=A60A&amp;i=03.06.1985&amp;f=27.10.2016</a></p>
  
  <p>How can I call this command from a Python script to dowload the file?
  What I tried is:</p>
  
  <pre><code>response = urllib2.urlopen(https://www.animasgr.it/IT/Prodotti/Quotazioni-e-Performance/_layouts/15/GetExcel.ashx?type=QuoteFondo&amp;code=A60A&amp;i=03.06.1985&amp;f=27.10.2016)
  
  In [12]: response
  Out[12]: &lt;addinfourl at 4504653336 whose fp = &lt;socket._fileobject object at 0x10cf9e550&gt;&gt;
  </code></pre>