title: downloading a file from a webpage using python script without url , calling onClick function
body: <p>There is a webpage which have a link "Click to Download" Clicking which a file is downloaded . 
  I can download this file manually by going to webpage and clicking on this link however I need to download this file via a python script .</p>
  
  <p>If i see the source i can see the anchor tag is will run a js function </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;a class="download-data-link1" onclick=" document.forms['dataform'].submit()" style="cursor:pointer; vertical-align: middle;"&gt;Download in csv&lt;/a&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>But i dont know the url of csv file and i am looking for a way to download it via python .</p>
  
  <p>I know we can download a file if we have url using httplib but couldnt understand how to get a file without url .</p>
  
  <p>Tried few things like in header added 
  'Content-Disposition': 'attachment;filename="data.csv"'}</p>
  
  <p>but it dosent seems to work . Any ideas ?</p>