How do I read the size of an archive on web
<p>I want to download a file from a website using python (urllib or urllib2)
  While downloading I want to show the percentage of the download.</p>

<pre><code>#!usr/bin/env python
#-*- coding: latin1 -*-

import urllib

url = 'http://ww1.microchip.com/downloads/en/DeviceDoc/pk2cmdv1-20Linux2-6.tar.gz'
urllib.urlretrieve(url, "pickit.tar.gz")
</code></pre>

<p>How could I implement this?</p>
