Browser based spintax processor exists?

onething1

Junior Member
Joined
Sep 10, 2010
Messages
116
Reaction score
2
Hey, you guys know of anything that can input spintax and output spun articles?

Most preferably browser based but if you can only find desktop based, hopefully it has an API access, but I doubt it.

It has to be browser based because most automation software is browser based

The Best Spinner's API returns an output that consists of spintax. But I wouldn't know how to turn that into hundreds of spinned articles.
 
Hey, you guys know of anything that can input spintax and output spun articles?

Most preferably browser based but if you can only find desktop based, hopefully it has an API access, but I doubt it.

It has to be browser based because most automation software is browser based

The Best Spinner's API returns an output that consists of spintax. But I wouldn't know how to turn that into hundreds of spinned articles.

You can use:
Code:
http://www.articlespinnertool.com/
It'll only output one article at a time, and as far as I know they do not have an API, but it wouldn't hurt to email them about it and see if they do.

If you want something you could host yourself you could use something like this:
PHP:
<?php 
function spin($s){ 
    preg_match('#\{(.+?)\}#is',$s,$m); 
    if(empty($m)) return $s; 

    $t = $m[1]; 

    if(strpos($t,'{')!==false){ 
        $t = substr($t, strrpos($t,'{') + 1); 
    } 

    $parts = explode("|", $t); 
    $s = preg_replace("+\{".preg_quote($t)."\}+is", $parts[array_rand($parts)], $s, 1); 

    return spin($s); 
} 

//Example: 
echo spin('{This|Here} is {some|a {little|wee} bit of} {example|sample} text.'); 
?>

You could either change it to pull from a file and each time you refresh the page you'd see a new spun article or make a form and pass $_POST['article'] or whatever you name the form field for the article to spin();
 
Last edited:
You could either change it to pull from a file and each time you refresh the page you'd see a new spun article or make a form and pass $_POST['article'] or whatever you name the form field for the article to spin();


wow thanks man, i really have to get a grip of the stuff php can do!

Thing is, now I don't know how to do HTTP POSTs.

if i have it right, an http post is a $POST form. And a $POST form is a page we host on, say, our localhost, that can extract a value from another page we have on our localhost.

This is where I'm lost.

I see the $_POST function on my input page would look something like this:

PHP:
<form action="http://localhost/spintaxprocessing.php" method="post">
Spintax TBS: <input type="text" spintaxtbs="fspintaxtbs" />
<input type="submit" />
</form>

But how, with PHP, could I transmit the spintax text from the TBS API to my input page?

And once I've done that, how would I go about obtaining an output from spintaxprocessing.php?

I'd greatly appreciate it if you could push me in the right direction. I can't quite understand the gist of the w3schools page on the matter yet.
 
Back
Top