Guest User

Untitled

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