How to create an RSS for my website?

Discussion in 'Programming' started by Divvy, Dec 29, 2010.

  1. #1
    Hello guys,

    I have a custom website script, and now I need to create an RSS for him.
    Can anyone know how to do that?

    Or someone here that can help me creating one?
    Please PM and tell me how much will cost me.

    Thank you
     
    Divvy, Dec 29, 2010 IP
  2. Mr.AD

    Mr.AD Member

    Messages:
    89
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    41
    #2
    Which language you use for develop website ? PHP or ASP/ASP.NET ? Depend on language have other ways to make Rss.
     
    Mr.AD, Dec 29, 2010 IP
  3. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #3
    What is your site? What are you wanting including in the RSS feed? Who realistically are you expecting to be consuming your feed?
     
    AstarothSolutions, Dec 31, 2010 IP
  4. MayaLocke

    MayaLocke Peon

    Messages:
    1,016
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #4
    MayaLocke, Jan 19, 2011 IP
  5. vickey88

    vickey88 Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    RSS stands for Really Simple Syndication or it's sometimes referred to as Rich Site Summary. It's an XML-based content format for distributing news, headlines, content, etc.

    Most popular sites news sites and blogs provide RSS feeds for you to subscribe to. All you need is a feed reader to view its contents.

    Feed readers come in all shapes and sizes these days. The Firefox browser has one built right into the Bookmarks feature. I use Google Reader.

    You can also create feeds for your own website so your audience can subscribe to them. If you update your content frequently and promote the feed effectively, it can help drive more steady traffic to your website.
     
    vickey88, Jan 20, 2011 IP
  6. dnsman

    dnsman Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    dnsman, Jan 20, 2011 IP
  7. prkishnani

    prkishnani Peon

    Messages:
    164
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Hello...........

    RSS feeds are created in XML. Feeds can be created using tags that are enclosed in brackets <> very similar to HTML.
     
    prkishnani, Jan 20, 2011 IP
  8. nuare

    nuare Member

    Messages:
    49
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    28
    #8
    On php you can use Zend_Feed_Writer class from ZendFramework
          /**
          * Create the parent feed
          */
          $feed = new Zend_Feed_Writer_Feed;
          $feed->setTitle('Paddy\'s Blog');
          $feed->setLink('http://www.example.com');
          $feed->setFeedLink('http://www.example.com/atom', 'atom');
          $feed->addAuthor(array(
              'name'  => 'Paddy',
              'email' => 'paddy@example.com',
              'uri'   => 'http://www.example.com',
          ));
          $feed->setDateModified(time());
          $feed->addHub('http://pubsubhubbub.appspot.com/');
          /**
          * Add one or more entries. Note that entries must
          * be manually added once created.
          */
          $entry = $feed->createEntry();
          $entry->setTitle('All Your Base Are Belong To Us');
          $entry->setLink('http://www.example.com/all-your-base-are-belong-to-us');
          $entry->addAuthor(array(
              'name'  => 'Paddy',
              'email' => 'paddy@example.com',
              'uri'   => 'http://www.example.com',
          ));
          $entry->setDateModified(time());
          $entry->setDateCreated(time());
          $entry->setDescription('Exposing the difficultly of porting games to English.');
          $entry->setContent(
              'I am not writing the article. The example is long enough as is ;).'
          );
    
          $feed->addEntry($entry);
          /**
          * Render the resulting feed to Atom 1.0 and assign to $out.
          * You can substitute "atom" with "rss" to generate an RSS 2.0 feed.
          */
          $out = $feed->export('atom');
    PHP:
     
    nuare, Jan 20, 2011 IP
  9. nuare

    nuare Member

    Messages:
    49
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    28
    #9
    In ASP.NET you can use System.ServiceModel.Syndication namespace

    // Create an XmlWriter to write the feed into it
    using (var writer = XmlWriter.Create(Response.OutputStream))
    {
        // Set the feed properties
        var feed = new SyndicationFeed(" feed provider",
                                       " feed provider with full description",
                                       new Uri("https://example.com/rss.aspx"));
    
        // Add authors
        feed.Authors.Add(new SyndicationPerson("mail@example.com", "FirstName LastName", "http://example.com"));
    
        // Add categories
            feed.Categories.Add(new SyndicationCategory("Category1"));
        // Set copyright
        feed.Copyright = new TextSyndicationContent("© Copyright 2010 example.com");
        // Set generator
        feed.Generator = "RSS Generator";
        // Set language
        feed.Language = "ru-RU";
    
        // Add post items
        var items = new List<SyndicationItem>();
    
            var title = string.Format("Title");
            var item = new SyndicationItem
                           {
                               Id = 1,
                               Title = SyndicationContent.CreatePlaintextContent(title),
                               Content =
                                   SyndicationContent.CreateXhtmlContent("content"),
                               PublishDate = DateTime.Now
                           };
            item.Categories.Add(new SyndicationCategory("category"));
            items.Add(item);
        }
        feed.Items = items;
    
        // Write the feed to output
        var rssFormatter = new Rss20FeedFormatter(feed);
        rssFormatter.WriteTo(writer);
        writer.Flush();
    }
    PHP:
     
    nuare, Jan 20, 2011 IP