def wordRateFB(obj_id): feed = FB.getFeed(obj_id) # у каждой группы достаем посты col = [post['message'] for post in feed] return wordRate(col)