Getting rid of old feeds

So. I’m learning Perl and needed a simple project to test out. My rss2email list has more than a 100 feeds that are checked hourly. Unfortunately I have no way of knowing which feeds are broken, or no longer being updated. That seemed like a simple enough thing to test out. Enter check_feeds.pl. This simple script accepts a single file as input (the file contains rss feeds, one per line). Running it gives a list of broken feeds, and those that have not been updated in the past two months.

I used XML::Feed to fetch and parse the feeds. It did crash on at least a dozen feeds in my list, so I regrettably had to comment them out for now. Future versions should fix this to make it more usable. Here is what a sample run looks like:

thaum ~/code/perl$ ./check_feeds.pl feedlist.txt
Feeds older than60 days  are:
http://teddziuba.com/atom.xml
http://feeds.feedburner.com/emacsblog
http://emacs.wordpress.com/feed/
http://acmel.wordpress.com/feed/
http://feeds2.feedburner.com/LinuxSystemAdminsBlog
<snip>

Dead feeds that could not be read are:
#bad#http://www.debian.org/News/weekly/dwn.en.rdf
#bad#http://stevehanov.ca/blog/index.php?atom
#bad#http://www.nintendolife.com/feeds/reviews
<snip>

And here is the actual file itself.
Update: Ok, I finally signed up on GitHub, so the script is available there as well. Hopefully a few months down the line the quality of my code will improve :)
Related articles

 

Enhanced by Zemanta

Support Indie Games

A quick post, this one. Via RPS, Indie Royale is a nice new site that has a 4-game bundle up at a great price. Their opening catalogue is quite good — I’ve had my eye on Sanctum for awhile now, and Gemini Rue looks nice as well. I had some difficulty getting paypal’s new bloody interface to accept my login, but that wasn’t going to stop me from paying :)

3DS early impressions

I came home (late) on Friday night, to find my (totally awesome) wife waiting for me with (an incredible) gift— a Nintendo 3DS! She must’ve actually been listening to me all these months when I’ve been moaning about not having one. I still haven’t got a 3DS game yet, but my DS games work fine. Yay for backward compatibility!

I’ve since checked out the eShop, and downloaded good old Excite Bike, TwinBee, and Cave Story. A system update was required before the Browser and eShop were unlocked.

Thankfully, there are a lot more applications installed by default than in the original DS, which is little more than a gaming device. The 3DS comes with a totally neat camera that takes pictures in 3D. There’s an mp3 player included as well. Also included are two nice Augmented Reality games that look really great.

Next up: getting a 3DS game (Street Fighter 4 maybe?)