Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

[fix] twitter engine

Alexandre Flament48cffb141ba6
diff --git a/searx/engines/twitter.py b/searx/engines/twitter.py
index 0e35e6188..4368ff08f 100644
--- a/searx/engines/twitter.py
+++ b/searx/engines/twitter.py
@@ -27,8 +27,8 @@ search_url = base_url + 'search?'
# specific xpath variables
results_xpath = '//li[@data-item-type="tweet"]'
link_xpath = './/small[@class="time"]//a'
-title_xpath = './/span[@class="username js-action-profile-name"]'
-content_xpath = './/p[@class="js-tweet-text tweet-text"]'
+title_xpath = './/span[contains(@class, "username")]'
+content_xpath = './/p[contains(@class, "tweet-text")]'
timestamp_xpath = './/span[contains(@class,"_timestamp")]'