diff options
author | Adam Tauber <asciimoo@gmail.com> | 2015-05-02 13:45:38 -0400 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2015-05-02 13:45:38 -0400 |
commit | 81850dd603631b7e4b0d3b22d85e9eb3ae5b1e58 (patch) | |
tree | 8a7f7dae066f376ecda9df298a468a63be3ea482 /searx/engines | |
parent | b3513aa3a6db41420e311bf5fc169f11564bc4e5 (diff) | |
parent | 48cffb141ba647f3fa4c3aa01635eff7bb96130d (diff) | |
download | searxng-81850dd603631b7e4b0d3b22d85e9eb3ae5b1e58.tar.gz searxng-81850dd603631b7e4b0d3b22d85e9eb3ae5b1e58.zip |
Merge pull request #309 from dalf/twitter
[fix] twitter engine
Diffstat (limited to 'searx/engines')
-rw-r--r-- | searx/engines/twitter.py | 4 |
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")]' |