forked from flarum/flarum.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zone-h.py
36 lines (31 loc) · 1019 Bytes
/
zone-h.py
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
34
35
36
#!/usr/bin/python
# vim: set fileencoding=\xe2
import re
from urlparse import urlparse
from pprint import pprint
print '''
######################################
# ____ #
# |_ /___ _ _ ___ ___| || | #
# / // _ \ ' \/ -_)___| __ | #
# /___\___/_||_\___| |_||_| #
# / __| |___ __ _ _ _ ___ _ _ #
# | (__| / -_) _` | ' \/ -_) '_| #
# \___|_\___\__,_|_||_\___|_| #
# #
# fb.com/yassinehd.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')