Browse Source

Merge pull request #309 from dalf/twitter

[fix] twitter engine
Adam Tauber 10 years ago
parent
commit
81850dd603
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      searx/engines/twitter.py

+ 2
- 2
searx/engines/twitter.py View File

27
 # specific xpath variables
27
 # specific xpath variables
28
 results_xpath = '//li[@data-item-type="tweet"]'
28
 results_xpath = '//li[@data-item-type="tweet"]'
29
 link_xpath = './/small[@class="time"]//a'
29
 link_xpath = './/small[@class="time"]//a'
30
-title_xpath = './/span[@class="username js-action-profile-name"]'
31
-content_xpath = './/p[@class="js-tweet-text tweet-text"]'
30
+title_xpath = './/span[contains(@class, "username")]'
31
+content_xpath = './/p[contains(@class, "tweet-text")]'
32
 timestamp_xpath = './/span[contains(@class,"_timestamp")]'
32
 timestamp_xpath = './/span[contains(@class,"_timestamp")]'
33
 
33
 
34
 
34