|
|
|
|
|
|
|
|
duck_res = [{"content": '<a href="' + i["url"] + '">' + i["title"] + '</a> ' + i["body"]} for i in |
|
|
duck_res = [{"content": '<a href="' + i["url"] + '">' + i["title"] + '</a> ' + i["body"]} for i in |
|
|
ddgs.news(ans, max_results=self._param.top_n)] |
|
|
ddgs.news(ans, max_results=self._param.top_n)] |
|
|
|
|
|
|
|
|
if not duck_res: |
|
|
|
|
|
return DuckDuckGo.be_output("") |
|
|
|
|
|
|
|
|
if not duck_res: |
|
|
|
|
|
return DuckDuckGo.be_output("") |
|
|
|
|
|
|
|
|
df = pd.DataFrame(duck_res) |
|
|
df = pd.DataFrame(duck_res) |
|
|
if DEBUG: print(df, ":::::::::::::::::::::::::::::::::") |
|
|
if DEBUG: print(df, ":::::::::::::::::::::::::::::::::") |