Google Sites now provides native RSS feeds for Announcements pages,
Comments and Recent Site Activity. To access these feeds, look for the
RSS icon! Tweet This
Google Sites allows us to share our recent site activity in a couple of different ways.
Preparing Your SiteIn order to pull the necessary data from your site to generate an RSS feed, you will first have to make recent site activity available to all site visitors. This is done by adding the Recent Site Activity gadget to your sidebar:
Building the RSS FeedTo build the RSS feed, you will need to use a third-party service to scrape and format the data. My preferred service is called Feed43, and this is what will be used for the purpose of this article.Once you navigate to Feed43.com, you will have the option to either create a new feed without creating an account, or you can create an account under which you can create and manage multiple feeds. While they do offer pay features, Feed43.com is a free service. Specify source page address (URL)After clicking the "create new feed" link and accepting the Feed43.com TOS, you will begin building your feed by specifying a source page address (URL). Let's look at the URL I provided for my feed: http://siteshelp.kccloudsolutions.com/system/app/pages/recentChangesThe URL points to the Recent Site Activity page of this site. On this page, you will find a list of the 20 most recent updates to the site. Pretty straightforward. Once Feed43.com looks at the URL, I am presented with a look at the code that makes up the page: <td width="15%">
<strong> <script xmlns="http://www.w3.org/1999/xhtml" type="text/javascript">JOT_insertRelDate(1244602553133, "Jun 9, 2009 7:55 PM", true);</script> <noscript xmlns="http://www.w3.org/1999/xhtml">Jun 9, 2009 7:55 PM</noscript> </strong> </td> <td> Brian Johnson edited <a xmlns="http://www.w3.org/1999/xhtml" href="http://siteshelp.kccloudsolutions.com/step-by-step-guides/usingthestyleattributewithgooglesites">Using the STYLE Attribute with Google Sites</a> </td> Of course, the above snipit of code is just that, a snipit. The
entire text of the site is actually displayed for you, in a resizable
text box. I've focused on this portion of the code for the simple fact
that it is what is needed to complete the process of constructing the
feed.
Define Extraction RulesAfter having analyzed the data and identified the information you want/need for your feed, your next step is to provide the extraction rules for Feed43. To do this, we first define a Global Search Pattern. This is simply a rule that tells Feed43 where to look in the page. For our purposes, we will focus on the entire page.Global Search Pattern:
{%}
Next, we need to specify exactly what we are looking for. In our case, we want each new Activity, date/time of update, Collaborator's Name, link to updated page and title of updated page: Item (Repeatable) Search Pattern:
Once the Search Patterns are defined, you will click the Extract button to generate a sample list of available data. The out put will look something like this: Item 1{%1} = Jun 10, 2009 11:31 AM Item 2{%1} = Jun 10, 2009 11:27 AM Define Output FormatThe next step (almost done!) is to format the feed for publication. There are two parts to this process:
Item Title Template: Recently Updated: {%4}
Item Link Template: < I left this blank > Item Content Template: <P>On {%1}, {%2} <a href="{%3}" TITLE="{%4}" ALT="{%4}">{%4}</A></P>
* Note: The Item Content Template field allows for the use of custom HTML to format your feed.
Finally, we get to a preview of what our feed will look like: Get Your RSS FeedThe last step is to customize your feed URL. You don't have to do this, but if you don't, you'll wind up with URL you can't remember. For my needs, I chose:Google also owns a service called FeedBurner that provides a number of tracking and analysis options for your RSS feeds. Once you've created your RSS feed, and have the URL available, you might want to run it through FeedBurner and publish the resulting FeedBurner URL instead: Related Information
|




