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

[GET] article spinner in HTML (support nesting)!

Discussion in 'Black Hat SEO' started by dztimes, Mar 23, 2012.

  1. dztimes

    dztimes Junior Member

    Joined:
    Jan 12, 2010
    Messages:
    134
    Likes Received:
    104
    Occupation:
    CTO
    Home Page:
    HTML:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Article Spinner</title>
    </head>
    <body>
    <div style="min-height:500px;">
    <table cellpadding="5" cellspacing="5" border="0" align="center" width="800px">
        <tr>
            <td>
                Spyntax content:<br />
                <textarea id="textSpin" rows="10" style="width:100%;"></textarea>
                <input id="chkNewLine" type="checkbox" />Convert newline to &ltbr /&gt
            </td>
        </tr>
        <tr>
            <td>
                <input id="inpSpin" type="button" value="Next Spun" onclick="Spin();" /> <input id="inpHtml" type="button" value="Html Code" onclick="Html(this);" style="display:none;" />               
            </td>
        </tr>
        <tr>
            <td>            
                <textarea id="textHtml" rows="10" style="width:100%;display:none;"></textarea>
                <label id="lblSpin"></label>
            </td>
        </tr>    
    </table> 
    </div>
    <div style="text-align:center;">Provided by <a href="http://www.weontech.com">www.WeOnTech.com</a> -  Auto Blog Network - Blog Post SEO - LinkWheel SEO</div>      
    <script type="text/javascript">
        function Html(obj) {
            if (obj.value == 'Html Code') {
                document.getElementById("textHtml").value = document.getElementById("lblSpin").innerHTML;
                document.getElementById("textHtml").style.display = "block";
                document.getElementById("lblSpin").style.display = "none";
                document.getElementById("inpHtml").value = "Preview";
            }
            else {
                document.getElementById("textHtml").style.display = "none";
                document.getElementById("lblSpin").style.display = "block";
                document.getElementById("inpHtml").value = "Html Code";
            }
        }
        function Spin() {
            var content = document.getElementById("textSpin").value.trim();
            if (content == "") {
                alert("Please input spyntax content!");
            }
            else if (content.split("{").length != content.split("}").length) {
                alert("Incorrect spyntax in content! Please re-check it!");
            }
            else {
                if (document.getElementById("chkNewLine").checked) {
                    var regX = /\n/gi;
                    content = content.replace(regX, "<br />");
                }
                document.getElementById("lblSpin").innerHTML = GetSpinContent(content);
                document.getElementById("inpHtml").style.display = "";
                if (document.getElementById("inpHtml").value == "Preview")
                    document.getElementById("textHtml").value = document.getElementById("lblSpin").innerHTML;
            }
        }        
        function GetSpinContent(text) {
            var result = text;
            var reg = new RegExp(/{([^{}]*)\}/i);
            while (matches = reg.exec(result)) {
                var array = new Array();
                array = matches[1].split('|');
                result = result.replace(matches[0], array[Math.floor(Math.random() * array.length)]);
            }
    
            reg = new RegExp(/\{\{([\s\S]*?)\}\}/i);
            while (match = reg.exec(result)) {
                var array = new Array();
                array = match[1].split('||');
                result = result.replace(match[0], array[Math.floor(Math.random() * array.length)]);
            }
            return result;
        } 
    </script>
    </body>
    </html>
    Pass spyntax content and it will generate spun content.

    Supports nested spinning to infinite levels.

    I wrote this myself and happy share it for BHW. Use it however you want.

    Let me know if you have any questions.

    P/S: I can't attach html file, so just replace ".doc" -> ".html" if you download from attachment
     

    Attached Files:

    • Thanks Thanks x 33
  2. monk13

    monk13 Power Member

    Joined:
    Jul 10, 2009
    Messages:
    547
    Likes Received:
    268
    i'll definitely put this to good use
    i'm going to be starting a site that will be an online seo tool repository as part of a campaign for affiliate sales of seo tools
    this will be a good start for content for that site
     
  3. veheme

    veheme Elite Member

    Joined:
    Jan 18, 2012
    Messages:
    3,342
    Likes Received:
    1,058
    Any sample site in which I can see it live? Thanks.
     
  4. monk13

    monk13 Power Member

    Joined:
    Jul 10, 2009
    Messages:
    547
    Likes Received:
    268
    just copy, paste into a .txt file and rename to .html, it works flawlessly
     
  5. veheme

    veheme Elite Member

    Joined:
    Jan 18, 2012
    Messages:
    3,342
    Likes Received:
    1,058
    Sorry for being a newbie at coding.. is this meant offline? or to put in your site to have an online spintax supported feature?
     
  6. dichotom

    dichotom Elite Member

    Joined:
    Dec 9, 2008
    Messages:
    1,911
    Likes Received:
    544
    Since it is in html you should be able to run it straight off your computer just by copy/pasting into a file with .html extension and loading it up in a browser. Pretty nice, usually people post spinners that are coded in php, good work OP
     
  7. lowkey

    lowkey Newbie

    Joined:
    Jan 31, 2010
    Messages:
    11
    Likes Received:
    0
    sorry,it does not work for me. i download the file and rename the .doc to .html,then upload the html file to my host,open the url in browers,click the next spun botton, the content never change.
     
  8. dztimes

    dztimes Junior Member

    Joined:
    Jan 12, 2010
    Messages:
    134
    Likes Received:
    104
    Occupation:
    CTO
    Home Page:
    PM your url
     
  9. SEO Authority

    SEO Authority Jr. VIP Jr. VIP Premium Member

    Joined:
    Apr 21, 2010
    Messages:
    800
    Likes Received:
    1,071
    Thanks for the great share, it's appreciated!
     
  10. chardyboy

    chardyboy Junior Member

    Joined:
    Sep 18, 2011
    Messages:
    104
    Likes Received:
    8
    wow i was amazed by this very big thanks
     
  11. vanessasweet

    vanessasweet Junior Member

    Joined:
    Jan 8, 2012
    Messages:
    184
    Likes Received:
    23
    Occupation:
    law school/webmaster
    Hi,thanks for the spinner.I have the spinner on a html page.When i spin the content
    there is no change in the article.Please give any advice.
     
  12. proxyblaze

    proxyblaze Jr. VIP Jr. VIP

    Joined:
    Oct 26, 2011
    Messages:
    822
    Likes Received:
    139
    Occupation:
    Technical Assistant (Wipro)
    Location:
    ProxyBlaze.com
    Home Page:
    Whats your spyntax content sweety?
     
  13. vanessasweet

    vanessasweet Junior Member

    Joined:
    Jan 8, 2012
    Messages:
    184
    Likes Received:
    23
    Occupation:
    law school/webmaster
    Hi,proxyblaze thank you for the help.I have the code on a html page.I have tried pasting
    the article and just writing a new article.I know on most spinners the content does not
    change but the spinner still makes the article unique content.
     
  14. seodonn

    seodonn Power Member

    Joined:
    Dec 14, 2011
    Messages:
    619
    Likes Received:
    53
    the format should be {good|bad}......

    ^^ it works like charm thanks bro.
     
  15. veheme

    veheme Elite Member

    Joined:
    Jan 18, 2012
    Messages:
    3,342
    Likes Received:
    1,058
    I think you didn't put any spintax in the body. You must put it in proper spinning format before it will create spin outputs.
     
  16. monk13

    monk13 Power Member

    Joined:
    Jul 10, 2009
    Messages:
    547
    Likes Received:
    268
    just a quick pointer...
    NEVER change the extension of a .doc file to a .html
    copy the text into a notepad .txt file, then save that as a html
    .doc contains all sorts of retarded html markup that can and does break things
     
    • Thanks Thanks x 1
  17. afro25

    afro25 Regular Member

    Joined:
    May 15, 2010
    Messages:
    238
    Likes Received:
    117
    Excellent, I wonder if the idiots on Warrior Forum would pay $97 for this? :D
     
  18. dztimes

    dztimes Junior Member

    Joined:
    Jan 12, 2010
    Messages:
    134
    Likes Received:
    104
    Occupation:
    CTO
    Home Page:
    BHW method to become a millionaire :)
     
  19. monk13

    monk13 Power Member

    Joined:
    Jul 10, 2009
    Messages:
    547
    Likes Received:
    268
    probably not
    but they'd most likely pay $17-$27 for it
     
  20. monk13

    monk13 Power Member

    Joined:
    Jul 10, 2009
    Messages:
    547
    Likes Received:
    268
    I LOVE THIS TOOL!
    i cannot say this enough,
    it spins content sure...great, awesome
    that's only half what it does for me
    it formats carriage returns into html
    it strips carriage returns
    it allows me to paste in anything and use seoquake to check keyword density
    and it just sits on my desktop as a html file, and in firefox i created a bookmark to it, no bandwidth used
    oh, forgot to mention, it validates my spintax too so i know if i got a missing bracket, dude....you rock!