I am trying to download a file from a website using python and mechanize. My current code successfully logs on to the website and opens the page that contains the download link.
For anyone who's interested, this was the solution:
br.retrieve('https://www.lendingclub.com/browse/browseNotesRawDataV2.action','loans.csv')[0]