import urllib2
f=urllib2.urlopen(raw_input("Please enter the URL:"))
ff=open(raw_input("Please enter the filename:"),"w+")

for x in range(1,1000):
       s=f.read()
       ff.write(s)
ff.close()