title: Downloading file with Python mechanize
body: <p>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.</p>
  
  <p>The download link is: <a href="https://www.lendingclub.com/browse/browseNotesRawDataV2.action" rel="noreferrer">https://www.lendingclub.com/browse/browseNotesRawDataV2.action</a></p>
  
  <p>The info for the link is: </p>
  
  <pre><code>Link(base_url='https://www.lendingclub.com/browse/browse.action', url='/browse/browseNotesRawDataV2.action', text='', tag='a', attrs=[('class', 'master_pngfix'), ('id', 'browseDownloadAllLink'), ('href', '/browse/browseNotesRawDataV2.action')])
  </code></pre>
  
  <p>I use the follow_link method to click on the link:</p>
  
  <pre><code>br = mechanize.Browser()
  br.follow_link(url='/browse/browseNotesRawDataV2.action')
  </code></pre>
  
  <p>However, nothing happens and no file is downloaded. When I open the link in my browser when I'm logged on, it pauses for a few seconds and downloads the file.</p>
  
  <p>How can I download the file using Python?</p>