condenses code for parsing out posts.