Herself’s Webtools

Webtools for Webmasters: Scripts, HowTos, Templates, Plugins, Widgets, Tips and Useful Information

Herself’s Webtools header image 1

Perl script to build blog archives by subject

September 12th, 2007 · No Comments

I found that lots of people were hunting around the TimesToCome Mobile Blog for posts that weren’t easily findable. You can tell this by looking in your log files. If you see some of your top views are for http://yourblog.com/label/something then people aren’t finding posts. 

Make it easier for them. Add in an archive by subject post and make it easy to find.

I haven’t figured out how to fully automate it but in the meantime, I wrote a couple of PERL scripts, one for Wordpress and one for Blogger that fetch your RSS feed, pull out the links, sort them by subject and stick them in an HTML file. You can open the file in any editor and cut and paste it into a post. You’ll want to re-run it once a month or so and update your archive post.

Blogger archive building tool
Wordpress archive building tool

Directions are in each file, it’s pretty painless. In Wordpress you have to temporarily up your feed count. In both you just have to switch the temp url to your RSS url feed.

See also:
Installing PERL Modules

Tags: archives · blogger · perl · wordpress

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

You must log in to post a comment.