本文整理汇总了Python中searcher.Searcher.search_meiju_list_by_english_name_keyword方法的典型用法代码示例。如果您正苦于以下问题:Python Searcher.search_meiju_list_by_english_name_keyword方法的具体用法?Python Searcher.search_meiju_list_by_english_name_keyword怎么用?Python Searcher.search_meiju_list_by_english_name_keyword使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类searcher.Searcher
的用法示例。
在下文中一共展示了Searcher.search_meiju_list_by_english_name_keyword方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: search
# 需要导入模块: from searcher import Searcher [as 别名]
# 或者: from searcher.Searcher import search_meiju_list_by_english_name_keyword [as 别名]
def search(keywords):
keyword_list = keywords.split(" ")
collector = Collector()
if collector.is_meiju_info_file_exist():
collector.read_all_meiju_info_from_file()
else:
collector.save_all_meiju_info()
collector.write_all_meiju_info_to_file()
searcher = Searcher()
meiju_ename_list = searcher.search_meiju_list_by_english_name_keyword(collector, keyword_list)
click.echo("Total %d Meiju is found. Following are the lists:" % len(meiju_ename_list))
for meiju_ename in meiju_ename_list:
click.echo("%s" % meiju_ename)
return