Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- 2 # -*- coding: utf-8 -*-
- 3
- 4 from sys import argv
- 5 import urllib2
- 6
- 7 urllist = open(argv[1], 'r')
- 8 i = 0
- 9
- 10 for url in urllist.readlines():
- 11 new = open(str(i), 'a')
- 12 data = urllib2.urlopen(url)
- 13 new.write(data)
- 14 new.close()
- 15
- 16 urllist.close()
Advertisement
Add Comment
Please, Sign In to add comment