use two ways to obtain keywords