Script to mine social data