def search(): keyword = request.args.get('wd') print keyword result = search_info(keyword) return render_template('/result.html', data=result, num=len(result))
from spiderData import search_info ss = search_info("nihao") print(ss)