script for aggregating blogs based on categories