From ab273e2faaa0ad157443ffe0b09194fad17ad743 Mon Sep 17 00:00:00 2001 From: Cqoicebordel Date: Fri, 12 Jun 2015 19:53:38 +0200 Subject: [PATCH 1/2] Fix Vimeo engine. Solve #368 --- searx/engines/vimeo.py | 12 +++---- searx/tests/engines/test_vimeo.py | 53 ++++++++++++++++++++----------- 2 files changed, 41 insertions(+), 24 deletions(-) diff --git a/searx/engines/vimeo.py b/searx/engines/vimeo.py index 0dcc65b7c..517ac1c44 100644 --- a/searx/engines/vimeo.py +++ b/searx/engines/vimeo.py @@ -27,11 +27,11 @@ base_url = 'https://vimeo.com' search_url = base_url + '/search/page:{pageno}?{query}' # specific xpath variables -results_xpath = '//div[@id="browse_content"]/ol/li' -url_xpath = './a/@href' -title_xpath = './a/div[@class="data"]/p[@class="title"]' -content_xpath = './a/img/@src' -publishedDate_xpath = './/p[@class="meta"]//attribute::datetime' +results_xpath = '//div[contains(@class,"results_grid")]/ul/li' +url_xpath = './/a/@href' +title_xpath = './/span[@class="title"]' +thumbnail_xpath = './/img[@class="js-clip_thumbnail_image"]/@src' +publishedDate_xpath = './/time/attribute::datetime' embedded_url = '