summaryrefslogtreecommitdiff
path: root/searx/engines
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2015-05-02 18:20:12 +0200
committerAlexandre Flament <alex@al-f.net>2015-05-02 18:20:12 +0200
commit48cffb141ba647f3fa4c3aa01635eff7bb96130d (patch)
treeaea627e7ad32a3866e279e10caab03e5ed9668b4 /searx/engines
parentbbd83f5a519381ac7ea690a1645258d106a9ba8a (diff)
downloadsearxng-48cffb141ba647f3fa4c3aa01635eff7bb96130d.tar.gz
searxng-48cffb141ba647f3fa4c3aa01635eff7bb96130d.zip
[fix] twitter engine
Diffstat (limited to 'searx/engines')
-rw-r--r--searx/engines/twitter.py4
1 files changed, 2 insertions, 2 deletions
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")]'