Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from urlparse import urlparse
- import re
- tmp = []
- print "- Coded by Zeerx7 -"
- x = open(raw_input('Your list: '),'r').read().split('\n')
- for c in x:
- if re.search('http(s)?://',c):pass
- else: c = 'http://'+c
- f = urlparse(c).netloc
- if f in tmp:pass
- elif f:print urlparse(c).netloc;tmp.append(f);open("result.txt", "a").write(f+"\n")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement