Mobile app version of vmapp.org
Login or Join
Rivera981

: Adding RSS/ATOM feed for a completely static web site I am helping a friend to bring a very large, completely static web site out of the stone age. One thing I'd like to add immediately is

@Rivera981

Posted in: #Feeds #Static

I am helping a friend to bring a very large, completely static web site out of the stone age. One thing I'd like to add immediately is a RSS/ATOM feed.

He does not like working with any kind of CMS. He makes his pages using a Dream Weaver template, then uploads it and manually updates some pages to link to the new content. His site does very, very well in search engines, but he's not quite engaging new visitors who would probably put him in their reader.

Is there something I can install that allows him to easily / manually add new items to a feed? Perhaps something that if given a link could fetch a content excerpt?

Searching around yielded hundreds of things that might work, but many from 2000 or prior that have not been updated since. Language is not critical, but PHP/Python would be ideal.

I really need something self hosted.

Edit

The flow of this should be, webmaster makes a new static page, uploads it, links to it .. now some mention of that page should exist in the RSS feed. Ideally, the webmaster could just provide the link to the new page, and the title with a short excerpt would appear in the feed.

Edit

Perhaps even something that just scraped title / excerpt from comment tags, i.e. :

<!-- BEGIN EXCERPT
<p>The quick brown fox got p0wned by l33t kittens</p>
-->


I don't need a full blown parser, just something that makes it easy for someone with minimal skills to maintain a feed on a completely static site.

10.06% popularity Vote Up Vote Down


Login to follow query

More posts by @Rivera981

6 Comments

Sorted by latest first Latest Oldest Best

 

@Cofer257

It would not be too difficult to write a PHP/Python script that auto-generated the RSS feed. The process would be:


Search the filesystem for the newest files (e.g. take every file with .html extension, store in an array with the date, then order them by date).
Use an HTML parser to extract the information from those files (e.g. title tag, the first paragraph in a particular element).
Write the data to the RSS XML format.


You should be able to find a few scripts (like the HTML parser) to help you on your way. Otherwise, ask Stack Overflow for help :)

10% popularity Vote Up Vote Down


 

@Lengel546

There is a nice "Note in Reader" bookmarklet trick you can use to create custom RSS feeds

10% popularity Vote Up Vote Down


 

@Phylliss660

Before finding a definitive solution (I don't have it) you could always try and use Google for this.

E.g. Login to Google Reader, click the Add button, add your friend's website there, Google will tell you that it has no feed and ask if you want Google to watch the page and create one for you. Then look at the "feed URL" there (http://www.google.com/notificationservice/webchanges/webfeeds/LONGNUMBER) and have your friend embed it on his homepage, as his feed URL.

10% popularity Vote Up Vote Down


 

@Bethany197

Dan Bricklin, creator of VisiCalc, has a free product called Software Garden ListGarden that generates RSS feeds manually:

alt text www.softwaregarden.com/products/listgarden/add1.gif

10% popularity Vote Up Vote Down


 

@Phylliss660

Seeing as he's that into doing everything by hand, why not do them by hand too?...

10% popularity Vote Up Vote Down


 

@Michele947

I can't think of anything off the shelf, but you could be pretty easily script something like this in Ruby for example.

Nokogiri is a very popular XML and HTML parser that you should use to read the page given the link the webmaster provides. Then you could extract the excerpt text and title. You can read in your existing feed XML, add the new info, and write it back out.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme