refactor competitor search using google search api