diff options
author | Adam Tauber <asciimoo@gmail.com> | 2014-03-18 19:24:01 +0100 |
---|---|---|
committer | Adam Tauber <asciimoo@gmail.com> | 2014-03-18 19:24:01 +0100 |
commit | ce08abe2232473cf9c4e90e60b6510831a289ada (patch) | |
tree | 01d73e1af6760dfe7311b74d20b75794e476d407 /searx/engines/vimeo.py | |
parent | f104553af465f37165123b2cc8286bffbc2b2d25 (diff) | |
download | searxng-ce08abe2232473cf9c4e90e60b6510831a289ada.tar.gz searxng-ce08abe2232473cf9c4e90e60b6510831a289ada.zip |
[fix] remove unused imports ++ pep8
Diffstat (limited to 'searx/engines/vimeo.py')
-rw-r--r-- | searx/engines/vimeo.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/engines/vimeo.py b/searx/engines/vimeo.py index d2d2a4dd0..8efa042a9 100644 --- a/searx/engines/vimeo.py +++ b/searx/engines/vimeo.py @@ -2,7 +2,6 @@ from urllib import urlencode from HTMLParser import HTMLParser from lxml import html from xpath import extract_text -from datetime import datetime from dateutil import parser base_url = 'http://vimeo.com' @@ -43,7 +42,8 @@ def response(resp): url = base_url + result.xpath(url_xpath)[0] title = p.unescape(extract_text(result.xpath(title_xpath))) thumbnail = extract_text(result.xpath(content_xpath)[0]) - publishedDate = parser.parse(extract_text(result.xpath(publishedDate_xpath)[0])) + publishedDate = parser.parse(extract_text( + result.xpath(publishedDate_xpath)[0])) results.append({'url': url, 'title': title, |