<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ricky Spears' Blog &#187; Web Development</title>
	<atom:link href="http://rickyspears.com/blog/category/web-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://rickyspears.com/blog</link>
	<description>Empower. Challenge. Advance.</description>
	<lastBuildDate>Tue, 15 May 2012 12:19:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>RSS Feed of The Latest Items from the Psychology Today Home Page</title>
		<link>http://rickyspears.com/blog/2012/04/rss-feed-of-the-latest-items-from-the-psychology-today-home-page/</link>
		<comments>http://rickyspears.com/blog/2012/04/rss-feed-of-the-latest-items-from-the-psychology-today-home-page/#comments</comments>
		<pubDate>Sun, 29 Apr 2012 19:14:34 +0000</pubDate>
		<dc:creator>rickyspears</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Ideas]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://rickyspears.com/blog/2012/04/rss-feed-of-the-latest-items-from-the-psychology-today-home-page/</guid>
		<description><![CDATA[I just used the Feed43 web site to create an RSS of all the items that appear in the “The Latest” section on the home page of the Psychology Today web site. Theoretically, this should contain all the latest content from across the Psychology Today web site. If you just want to subscribe to it, [...]]]></description>
			<content:encoded><![CDATA[<p>I just used the Feed43 web site to create an RSS of all the items that appear in the “The Latest” section on the home page of the Psychology Today web site. Theoretically, this should contain all the latest content from across the Psychology Today web site. If you just want to subscribe to it, here it is:   <br /><a title="http://www.feed43.com/5658507871028441.xml" href="http://www.feed43.com/5658507871028441.xml">http://www.feed43.com/5658507871028441.xml</a></p>
<p><strong>Why Did I Do This?</strong></p>
<p>I really enjoy a lot of the blog posts and articles at <a href="http://www.psychologytoday.com/">Psychology Today</a>. There must be many thousands of articles in <a href="http://www.psychologytoday.com/blog/index">776 individual blogs</a> organized into <a href="http://www.psychologytoday.com/topics">45 topics</a> (as of today, assuming my counting is correct) and several dozen new ones are written each week.</p>
<p>The Psychology Today home page aggregates all the articles across all the topics and blogs and displays the 30 most recent items from across the site in the “The Latest” section. </p>
<p>I wanted to be able to easily stay updated on new content across the site. I could have subscribed to all 45 Topic feeds in <a href="http://www.google.com/reader/">Google Reader</a>, but I really didn’t want to add 45 new feeds; I only wanted to add one single feed.</p>
<p><strong>My Preliminary Research</strong></p>
<p>First I searched around on the Psychology Today web site for an RSS feed like I wanted, but I couldn’t find one. Then I turned to Google to see if I could find one mentioned there, and I didn’t find anything. So I then turned to investigating the Psychology Today web site more closely. Here is what I discovered.</p>
<p>Each topic has an RSS feed for it, and each blog has an RSS feed for it as well. For example, you can view the most recent articles by the writers in the Procrastination topic at the <strong><em>Procrastination topic page</em></strong> at     <br /><a href="http://www.psychologytoday.com/topics/procrastination/">http://www.psychologytoday.com/topics/procrastination/</a>,     <br />and access the <strong><em>Procrastination topic RSS</em></strong> feed at     <br /><a href="http://www.psychologytoday.com/topics/procrastination/feed">http://www.psychologytoday.com/topics/procrastination/feed</a>.     <br />One of the blogs in the Procrastination topic is “Don’t Delay” by Timothy A. Pachyl. You can view the most recent posts on this blog at    <br /> <a href="http://www.psychologytoday.com/blog/dont-delay">http://www.psychologytoday.com/blog/dont-delay</a>,     <br />and access the Don’t Delay RSS feed at     <br /><a title="http://www.psychologytoday.com/blog/dont-delay/feed" href="http://www.psychologytoday.com/blog/dont-delay/feed">http://www.psychologytoday.com/blog/dont-delay/feed</a>.</p>
<p>If you look a those URLs, you’ll notice they use a very simple naming convention for the URL paths for the the topics and blogs. The RSS feed can then be accessed by simply appending <strong><em>/feed</em></strong> onto the end of the topic or blog URL.</p>
<p>Unfortunately, you’ll get a 404 error page if you just append /feed onto the root URL like so:   <br /><strong><a href="http://www.psychologytoday.com/feed">http://www.psychologytoday.com/feed</a></strong>. There also doesn’t seem to be a single RSS feed that aggregates all the content from the entire site.</p>
<p><strong>Rolling My Own Psychology Today RSS Feed</strong></p>
<p>At this point, I determined that if I wanted an RSS feed of all the items from the Psychology Today home page then I was going to have to do it myself. i thought about writing my own PHP script to periodically parse out their home page, but I decided that before I did this I would see if there was a good service that could do this more easily.</p>
<p>A quick search uncovered a few services that will create an RSS feed from the content on any site. I experimented with a few of these and none of them worked to my satisfaction. Then I discovered <a href="http://www.feed43.com/">Feed43</a>. This site let me essentially write a script that parses through the Psychology Today home page, extracts the content in the “The Latest” section, then I could mark up how that extracted content would get rendered in an RSS feed. In just a few minutes I had a working RSS feed of the Latest Items from the Psychology Today Home Page. Here is the results:    <br /><a title="http://www.feed43.com/5658507871028441.xml" href="http://www.feed43.com/5658507871028441.xml">http://www.feed43.com/5658507871028441.xml</a>.</p>
<p><strong>Warnings and Limitations</strong></p>
<p>I really do like the Feed43 service. One thing that you’ll need to keep in mind though is that they only scrape the home page and rebuild the feed once every six hours (they will scrape it once an hour for $29/year) but since this is currently the only site I’m using this for I can’t justify that expense. Another thing you’ll need to remember is that if they redesign their web site and the code on their home page changes then this feed may no longer work. As long as I’m interested in aggregating their content in this way, I’ll try to maintain this feed and keep it working, but I’m not making any promises.</p>
<p><strong>Final Words</strong></p>
<p><strong>So, if you’re a psychology geek like I’ve become in the the past couple years, enjoy your new <em>Psychology Today Home Page RSS Feed</em>!</strong> If you find this useful, let me know in the comments. As for me, I’ve got some Sunday afternoon reading to do…</p>
]]></content:encoded>
			<wfw:commentRss>http://rickyspears.com/blog/2012/04/rss-feed-of-the-latest-items-from-the-psychology-today-home-page/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>My First WordPress Plugin: &#8220;Zap Read This Post&#8221;</title>
		<link>http://rickyspears.com/blog/2006/08/my-first-wordpress-plugin-zap-read-this-post/</link>
		<comments>http://rickyspears.com/blog/2006/08/my-first-wordpress-plugin-zap-read-this-post/#comments</comments>
		<pubDate>Sat, 19 Aug 2006 04:27:54 +0000</pubDate>
		<dc:creator>rickyspears</dc:creator>
				<category><![CDATA[Productivity]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://rickyspears.com/blog/?p=140</guid>
		<description><![CDATA[I just finished writing my first plugin for WordPress! It&#8217;s called &#8220;Zap Read This Post&#8221; and it places a button before each post that says, &#8220;Zap Read This&#8221;. When a user clicks on the button it will open a new window and load the text of the post into Zap Reader so that visitors can [...]]]></description>
			<content:encoded><![CDATA[<p>I just finished writing my first plugin for WordPress! It&#8217;s called &#8220;Zap Read This Post&#8221; and it places a button before each post that says, &#8220;Zap Read This&#8221;. When a user clicks on the button it will open a new window and load the text of the post into <a href="http://www.zapreader.com">Zap Reader</a> so that visitors can quickly read the text of that particular post. Do you see it? Well, what&#8217;cha waitin&#8217; for? Go ahead, click it, and try it out!</p>
<p>Writing this was much easier than I initially expected. I looked at the code for a couple other plugins that added something before or after the post, and reviewed the <a href="http://wiki.wordpress.org/Plugin/API">WordPress Plugin API</a>. I was up and running in no time.</p>
<p>I had initially hard-coded a button last weekend when I made the site live. That was certainly more challenging than using the APIs and doing it right. <img src='http://rickyspears.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  If you have a WordPress blog, know a little bit about PHP (or are willing to learn), and want to make your blog do something new and interesting, then I strongly encourage you to spend a little time investigating how to create your own WordPress plugins. You&#8217;ll have a lot of fun, learn a lot, and contribute to your neighbors on the web as well.</p>
<p><a href="http://zapreader.com/blog/?p=9">Find out more about the &#8220;Zap Read This Post&#8221; plugin for WordPress.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://rickyspears.com/blog/2006/08/my-first-wordpress-plugin-zap-read-this-post/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

