Poor Man’s FeedBurner

I wanted to get an idea of how many subscribers I had to my new blog MacHappy. It’s a blog I started to talk about Mac stuff and also the Mac apps I’m writing which I call Happy Apps.

I thought about using FeedBurner, but I really like hosting my own feeds. Plus I haven’t had the need for their wide array of services yet…except for the readership count.

So back to figuring out how many subscribers / readers for a blog. MacHappy is on WordPress and its feed is at http://www.happyapps.com/blog/feed/, which means that the feeds all have “/blog/feed” in the URL. If you’re got a WordPress blog, you’ll have the same sort of setup. This blog is hosted on Movable Type, which is a bit different since usually you have atom.xml or whatever you call your feed template (usually ending in .xml). I’ve actually got two feeds here: a feed for everything and a feed just for Eclipse.

Then you download your log file from your ISP.

Then run this nice series of piped commands (for WordPress): grep /blog/feed yourLogFile | awk ‘{print $1}’ | sort | uniq | wc -l

(for Movable Type): grep .xml yourLogFile | awk ‘{print $1}’ | sort | uniq | wc -l

And for my eclipse.rss feed, something like grep .rss yourLogFile | awk ‘{print $1}’ | sort | uniq | wc -l

You should get a nice integer back, hopefully a nice big one. :)

It’s not exact since the same person could be checking from multiple locations throughout the day, but I think I’ll be using this to keep track of the trend.