t.co url handling updated to fix keyerror exceptions