Python names generator + DB



shit, son! now that's what i call giving back! more +rep for you.

edit -- lies, i must give out more rep before repping you again.
 
Thanks dude. I made a python script the other day to generate domain names that look like real words but aren't. It then dumps them into text files, 500 per file, for easy pasting into GoDaddy or other sites that check 500 at a time. Will post if there's interest.
 
Thanks dude. I made a python script the other day to generate domain names that look like real words but aren't. It then dumps them into text files, 500 per file, for easy pasting into GoDaddy or other sites that check 500 at a time. Will post if there's interest.

Why not do DNS lookups to check availability? :)
 
well done!

Here is a little short cut for doing `chars='ABC....789'`

Code:
import string
alnum = string.letters + string.digits
"""
>>> alnum
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
"""



That will let you do pythonic stuff like for creating random passwords

Code:
import random
import string
alnum = [x for x in string.letters + string.digits]
random.shuffle(alnum)
password = ''.join(alnum[0:8])
 
well done!

Here is a little short cut for doing `chars='ABC....789'`

Code:
import string
alnum = string.letters + string.digits
"""
>>> alnum
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
"""
That will let you do pythonic stuff like for creating random passwords

Code:
import random
import string
alnum = [x for x in string.letters + string.digits]
random.shuffle(alnum)
password = ''.join(alnum[0:8])

just used this, +rep.

also, i was generating 512 character random strings that i wanted to have good random variation, so i multiplied it --
Code:
alnum = [x for x in (string.letters + string.digits)*32]