title: Perform Download via download button in Python
body: <p>I am somehow new in the region of getting data from a website. </p>
  
  <p>I have, e.g. a website <a href="http://www.ariva.de/adidas-aktie/historische_kurse" rel="nofollow noreferrer">http://www.ariva.de/adidas-aktie/historische_kurse</a> and there is a donwload button hidden as shown in the picture below in red:</p>
  
  <p><a href="https://i.stack.imgur.com/wuV1v.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wuV1v.png" alt="enter image description here"></a></p>
  
  <p>The main question is how can I download that in python? I tried some stuff found on the web (e.g. like beautiful soup, scraperwiki etc.) but somehow failed. 
  The data download link is structured as the following:</p>
  
  <pre><code>&gt; Kurse als CSV-Datei       &lt;/h3&gt; &lt;div class="clearfloat"&gt;&lt;/div&gt; &lt;/div&gt;
  &gt; &lt;form action="/quote/historic/historic.csv" method="get"
  &gt; name="histcsv"&gt; &lt;input type="hidden" name="secu" value="291" /&gt; &lt;input
  &gt; type="hidden" name="boerse_id" value="6" /&gt; &lt;input type="hidden"
  &gt; name="clean_split"  value="1" /&gt; &lt;input type="hidden"
  &gt; name="clean_payout" value="1" /&gt; &lt;input type="hidden"
  &gt; name="clean_bezug"  value="1" /&gt; &lt;input type="hidden" name="currency" 
  &gt; value="EUR" /&gt; &lt;ul style="margin:5px;"&gt; &lt;li&gt; &lt;label
  &gt; for="minTime"&gt;von:&lt;/label&gt; &lt;input id="minTime" name="min_time"
  &gt; value="8.2.2016" style="width:71px" /&gt; &lt;/li&gt; &lt;li&gt; &lt;label
  &gt; for="maxTime"&gt;bis:&lt;/label&gt; &lt;input id="maxTime" name="max_time"
  &gt; value="8.2.2017" style="width:71px" /&gt; &lt;/li&gt; &lt;li&gt; &lt;label
  &gt; for="trenner"&gt;Trennzeichen:&lt;/label&gt; &lt;input id="trenner" name="trenner"
  &gt; value=";" style="width:25px" /&gt; &lt;/li&gt; &lt;li&gt; &lt;input class="submitButton"
  &gt; name="go" value="Download" type="submit" /&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/form&gt; &lt;/div&gt;
  &gt; &lt;/div&gt; &lt;div class="clearfloat"&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div
  &gt; id="foot" class="noprint"&gt; &lt;div class="adControllerAd evtAdShow 
  &gt; noprint abstand adHide" id="iqadtile16"&gt; &lt;/div&gt; &lt;div id="footer"&gt; &lt;div
  &gt; class="footer abstand"&gt; &lt;a
  &gt; href="/adidas-aktie/historische_kurse?boerse_id=6&amp;currency=EUR&amp;clean_split=1&amp;clean_payout=1&amp;clean_bezug=1&amp;min_time=2014-09-01&amp;max_time=2017-02-07/wkn_A1EWWW_historic.csv"
  &gt; class="anker"&gt; &lt;img src="/forum/i/up.gif" alt="" width="9"
  &gt; height="9"&gt;Zum Seitenanfang&lt;/a&gt; &lt;a
  &gt; href="/fehlermeldung/index.m?ag=291&amp;amp;referrer=&amp;amp;ssl=0&amp;amp;url=%2Fadidas-aktie%2Fhistorische_kurse%3Fboerse_id%3D6%26currency%3DEUR%26clean_split%3D1%26clean_payout%3D1%26clean_bezug%3D1%26min_time%3D2014-09-01%26max_time%3D2017-02-07%2Fwkn_A1EWWW_historic.csv"
  </code></pre>