
28.01.2009, 04:46
|
|
Banned
Регистрация: 06.01.2008
Сообщений: 904
Провел на форуме: 4037638
Репутация:
1821
|
|
PHP код:
# Link parser
# Author: De-visible
# ICQ#:223333575
# Mega - Script
import re
file_name = "text.txt"
out_file = "out.txt"
x = []
with open(file_name) as txt:
with open(out_file,'w') as outf:
for line in txt:
outf.write(str(re.findall(r'http:\/\/(.*?)\/',line))[2:-2]+"\n")
print "completed"
|
|
|