alex-i07 commited on
Commit
a5e2181
·
1 Parent(s): a1f9bf9
Files changed (1) hide show
  1. tools.py +2 -0
tools.py CHANGED
@@ -82,6 +82,7 @@ def wiki_search(query: str) -> str | None:
82
  ddg_results = []
83
  wiki_results = ""
84
  link_rows = _fetch_ddg_search_result_links(f"wikipedia {query}")
 
85
  for link_row in link_rows:
86
  if not 'en.wikipedia.org' in link_row.attrs['href']:
87
  continue
@@ -115,6 +116,7 @@ def archive_search(query: str) -> str | None:
115
  ddg_results = []
116
  archive_results = ""
117
  link_rows = _fetch_ddg_search_result_links(f"archive.org {query}")
 
118
  for link_row in link_rows:
119
  if not 'archive.org' in link_row.attrs['href']:
120
  continue
 
82
  ddg_results = []
83
  wiki_results = ""
84
  link_rows = _fetch_ddg_search_result_links(f"wikipedia {query}")
85
+ print(query, link_rows)
86
  for link_row in link_rows:
87
  if not 'en.wikipedia.org' in link_row.attrs['href']:
88
  continue
 
116
  ddg_results = []
117
  archive_results = ""
118
  link_rows = _fetch_ddg_search_result_links(f"archive.org {query}")
119
+ print(query, link_rows)
120
  for link_row in link_rows:
121
  if not 'archive.org' in link_row.attrs['href']:
122
  continue