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.
#!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")
How could I implement this?