SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
[fix] handle missing url in twitter results
Adam Tauber28493d41a327
diff --git a/searx/engines/twitter.py b/searx/engines/twitter.pyindex a0ee18a47..36efac186 100644--- a/searx/engines/twitter.py+++ b/searx/engines/twitter.py@@ -55,10 +55,14 @@ def response(resp):# parse resultsfor tweet in dom.xpath(results_xpath):- link = tweet.xpath(link_xpath)[0]+ try:+ link = tweet.xpath(link_xpath)[0]+ content = extract_text(tweet.xpath(content_xpath)[0])+ except Exception:+ continue+url = urljoin(base_url, link.attrib.get('href'))title = extract_text(tweet.xpath(title_xpath))- content = extract_text(tweet.xpath(content_xpath)[0])pubdate = tweet.xpath(timestamp_xpath)if len(pubdate) > 0: