Help need 5 word permutation!!!

timothywcrane

Supreme Member
Joined
Apr 25, 2009
Messages
1,339
Reaction score
742
Every permutation based keyword tool is limited to an input of 4 variables, I need 5. I have 5 words that i need to list in every possible order combination. Any suggestions? Been dling keyword tools all day, none have given me over 4 input boxes. Thanks. I do not even want keyword suggestions, just order permutation.
 
I could make you an n permutation program if you really wanted and have the results output to a text file.
 
I could make you an n permutation program if you really wanted and have the results output to a text file.
I would but I am broke. Trying to figure out in Python drove me nuts. Thank you .
 
No charge. I'll make one in php tonight and give you the script tomorrow.
Thank you so much. I love the forum alot. i plan on making a little vid of my blckhat plans for the permutator. You'll get a copy, even though it might teach you alot, but who knows. Using it to spin conversations for twitter accounts.
 
Was bored so I whipped this up, as I'm trying to learn Python too.

Code:
#!/usr/bin/env python

import itertools

outfile = open('output.txt', 'w')

keywords = "this is a keyword list"
keywords = keywords.split()
num = len(keywords)

perm = itertools.permutations(range(num))
for i in perm:
    str = ''
    for j in range(num):
        str = "%s %s" % (str, keywords[i[j]])
    #print str[1:]
    outfile.write("%s\n" % str[1:])
That should do what you're asking, I think... although I cheated and used itertools. :D

Don't go too crazy with the number of keywords though.. it gets big real fast.
 
Back
Top