1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help need 5 word permutation!!!

Discussion in 'Black Hat SEO' started by timothywcrane, Jul 19, 2009.

  1. timothywcrane

    timothywcrane Power Member

    Joined:
    Apr 25, 2009
    Messages:
    590
    Likes Received:
    236
    Occupation:
    Internet Promotion Management
    Location:
    USA
    Home Page:
    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.
     
  2. SupraFast

    SupraFast Junior Member

    Joined:
    Jun 24, 2009
    Messages:
    151
    Likes Received:
    34
    I could make you an n permutation program if you really wanted and have the results output to a text file.
     
  3. timothywcrane

    timothywcrane Power Member

    Joined:
    Apr 25, 2009
    Messages:
    590
    Likes Received:
    236
    Occupation:
    Internet Promotion Management
    Location:
    USA
    Home Page:
    I would but I am broke. Trying to figure out in Python drove me nuts. Thank you .
     
  4. SupraFast

    SupraFast Junior Member

    Joined:
    Jun 24, 2009
    Messages:
    151
    Likes Received:
    34
    No charge. I'll make one in php tonight and give you the script tomorrow.
     
    • Thanks Thanks x 1
  5. timothywcrane

    timothywcrane Power Member

    Joined:
    Apr 25, 2009
    Messages:
    590
    Likes Received:
    236
    Occupation:
    Internet Promotion Management
    Location:
    USA
    Home Page:
    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.
     
  6. MuonTrail

    MuonTrail Registered Member

    Joined:
    Mar 5, 2009
    Messages:
    96
    Likes Received:
    93
    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.
     
    • Thanks Thanks x 1
  7. timothywcrane

    timothywcrane Power Member

    Joined:
    Apr 25, 2009
    Messages:
    590
    Likes Received:
    236
    Occupation:
    Internet Promotion Management
    Location:
    USA
    Home Page: