-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzone.py
More file actions
33 lines (27 loc) · 907 Bytes
/
zone.py
File metadata and controls
33 lines (27 loc) · 907 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/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')