Re: python file downloader not working

2017-07-25 Thread dieter
Rahul Sircar writes: > 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 = urll

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')