+ Reply to Thread + Post New Thread
Results 1 to 4 of 4

Thread: Article Spinner Source Code in C#

  1. #1
    Registered Member
    Join Date
    Jun 2010
    Posts
    95
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Article Spinner Source Code in C#

    Content Spinner Source Code C#

    Code:
    private string returnSpinnedPart(string part)
            {
                Random random = new Random();
    
                string[] values = part.Split('|');
    
                if (values.Length > 0)
                    return values[random.Next(0, values.Length)];
    
                return "";
            }
    
            private string returnSpinnedContent(string input)
            {
                string spinned = input;
                try
                {
                    Regex regexObj = new Regex(@"\{.*?\}", RegexOptions.Singleline);
                    MatchCollection m = regexObj.Matches(input);
                    foreach (Match match in m)
                    {
                            string part = returnSpinnedPart(match.Value.Replace("{", "").Replace("}", ""));
                            spinned = spinned.Replace(match.Value, part);
                    }
                }
                catch (ArgumentException ex)
                {
                    MessageBox.Show("RegEx prob");
                }
                return spinned;
            }

  2. Shorten URL    SEO Services    Buy Xrumer

    Sponsored Links

  3. #2
    Noobie
    Join Date
    Jan 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Article Spinner Source Code in C#

    It's so short, i think this source is not full.

  4. #3
    SEO Apprentice
    Join Date
    Jan 2011
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Article Spinner Source Code in C#

    Is this the full source code? Has any one got this code to spin articles?

  5. #4
    Noobie
    Join Date
    Jan 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Article Spinner Source Code in C#

    This looks full, test it out if you want to make sure it works.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts