def list(): option = Option(start=0, every=True) assistant = LocalAssistant((), option) assistant.search() return 0
def search(keywords, target, year_low, year_high): option = Option(start=0, year_low=year_low, year_high=year_high) assistant = LocalAssistant(keywords, option) if target == 'local' \ else GlobalAssistant(keywords, option) assistant.search() return 0