  
#!/usr/bin/python
# vim: set fileencoding=\xe2
import re
from urlparse import urlparse
from pprint import pprint

print '''

   _____           _  _____          _      
  / ____|         | |/ ____|        | |     
 | (___   __ _  __| | |     ___   __| | ___ 
  \___ \ / _` |/ _` | |    / _ \ / _` |/ _ \
  ____) | (_| | (_| | |___| (_) | (_| |  __/
 |_____/ \__,_|\__,_|\_____\___/ \__,_|\___|
------------- Zone-h Cleaner V.1 ------------
--------- Powered By SadCode Official -------                                      
      '''


urls = raw_input('Text File To Clean ? : ')
with open(urls, 'r') as urls:
	for line in urls:
		url = line.rstrip() and line.split('\t')

		bond = url[7].replace('...', '')
		benz = url[7].split('/')
		clean = benz[0]
		if 'http://' not in clean:
			url = 'http://'+clean
			with open('hd.txt', 'a') as myfile:
			 myfile.write('http://'+clean)
			 myfile.write('\n')
