Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # firefox-dta4blacklist.py
- zzz='''
- '''
- s=[]
- z=zzz.split('<description>')
- for v in z:
- for x in ('''http:// https://'''.split()):
- v=v.replace(x,'')
- v=v.split(r'/')[0]
- if v.count('.') > 1: v=v.split('.'); v=v[-2]+'.'+v[-1]
- if v not in s and len(v) < 32: s.append(v)
- s.sort()
- s.sort(key=lambda x: zzz.count(x))
- s.reverse()
- # for v in s[:50]: print v, zzz.count(v)
- s='+-'+'+-'.join(s[:10])
- print s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement