Mercurial > dnsbl
diff make-tld-conf.py @ 276:19ff60eaab74
more tld entries
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Fri, 15 Nov 2013 13:34:53 -0800 |
parents | f92f24950bd3 |
children | 6497944a9bd9 |
line wrap: on
line diff
--- a/make-tld-conf.py Mon Sep 09 21:27:39 2013 -0700 +++ b/make-tld-conf.py Fri Nov 15 13:34:53 2013 -0800 @@ -1,6 +1,6 @@ #!/usr/bin/python -import os, sys +import os, sys, time def cmd(c): return os.popen(c).read().rstrip('\n') @@ -9,6 +9,7 @@ c = 'curl http://mxr.mozilla.org/mozilla-central/source/netwerk/dns/effective_tld_names.dat?raw=1 2>/dev/null' content = cmd(c) f=open('tld.conf','w') +f.write(time.strftime("// generated by make-tld-conf.py on %Y-%m-%d %H:%M:%S\n\n")) for x in content.split('\n'): if (x == '') or (x[:2] == '//'): f.write('%s\n' % x) else: