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 .
If i see the source i can see the anchor tag is will run a js function
<a class="download-data-link1" onclick=" document.forms['dataform'].submit()" style="cursor:pointer; vertical-align: middle;">Download in csv</a>
But i dont know the url of csv file and i am looking for a way to download it via python .
I know we can download a file if we have url using httplib but couldnt understand how to get a file without url .
Tried few things like in header added 'Content-Disposition': 'attachment;filename="data.csv"'}
but it dosent seems to work . Any ideas ?