on master help sign in
Remove debug log from onesearch engine
f1f3ad9Israel Yago Pereira
searx/engines/onesearch.py−1
@@ -47,7 +47,6 @@ def response(resp):
47 onesearch_urls = eval_xpath(doc, '//div[contains(@class, "algo")]//h3[contains(@class, "title")]/a/@href')
47 onesearch_urls = eval_xpath(doc, '//div[contains(@class, "algo")]//h3[contains(@class, "title")]/a/@href')
48
48
49 for title_tag, content, onesearch_url in zip(titles_tags, contents, onesearch_urls):
49 for title_tag, content, onesearch_url in zip(titles_tags, contents, onesearch_urls):
50− print(f"{title_tag.text_content()} ---> {onesearch_url}")
51 matches = re.search(r'RU=(.*?)\/', onesearch_url)
50 matches = re.search(r'RU=(.*?)\/', onesearch_url)
52 results.append({
51 results.append({
53 'title': title_tag.text_content(),
52 'title': title_tag.text_content(),