python file downloader not working

2017-07-25 Thread Rahul Sircar
So I recently tried to write a script using urllib2 module. Here is the code below: import urllib2 file = 'metasploitable-linux-2.0.0.zip' url='https://downloads.sourceforge.net/project/metasploitable/Metasploitable2/metasploitable-linux-2.0.0.zip' response = urllib2.urlopen(url) fh=open(file,'w')

[no subject]

2017-07-22 Thread Rahul Sircar
I wrote my code for downloading a file 'Metasploitable' using urllib2.But it seems to have entered infinite loop.Because the screen is blank.It just hangs there.Please have a look at my code. import urllib2 file = 'metasploitable-linux-2.0.0.zip' url=' https://downloads.sourceforge.net/project/met