Scripts for analyzing community activity and structure