help finding a script if it exists

pgaoroagnloeid

Junior Member
Joined
Aug 11, 2008
Messages
111
Reaction score
22
I am looking to generate doorway pages for a wordpress site, but I want to be able to specify the topic of each page and then spin all of the other content.

For instance, I would create say 5 paragraphs of text about why you should buy "big blue widgets".

I want to mass create pages by inserting every product we have in place of big blue widgets and then automatically creating a page about that.

BUT, all the other text would remain the same, so I want to be able to spin that text by inserting synonyms of my choice like you would do on crewriter.com for instance.

So what it would do would be to create a new product page, and replace all "product here" references with the next product phrase and then spin the rest of the content to make it unique.

Is there a wordpress plugin out there that can do this? Or is there some kind of program where I can input my products into a spreadsheet and import the spreadsheet into a program that creates the content and then I can import the new data into wordpress?

Any help would be greatly appreciated.
 
I think I "almost" answered my own question. I found a plugin called search2post that does exactly what I want, BUT it only does it for terms that users search for.

I could go into the site and type in searches for every single phrase that I want to target, and that would give me the perfect result, however it would also give me a bunch of other pages that I do not want or need and that would not make sense when put into the %keyword% spot.

Can anyone get me closer than this?
 
This should do it. Run this in Python and it will print all of the pages you want to the console.

Code:
keywords = ["your", "keywords", "go", "here"]
oldtext = "<Your template goes here, with %KEY% {everywhere|in any place} you want a keyword>"

import re
import random

def stripspin(phrase):
    if(phrase[len(phrase)-1:] == '}'): phrase = phrase[:len(phrase)-1]
    if(phrase[:1] == '{'): phrase = phrase[1:]
    return phrase
text = oldtext
p = re.compile('{[^{}]*}')

for keyword in keywords:
    while re.search(p, text):
            instance = re.search(p, text).group(0)
            instance = instance.strip('{}')
            instance = instance.split('|')
            text = p.sub(random.choice(instance), text)
    print text.replace("%KEY%", keyword)
    text = oldtext
 
Back
Top