summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
Diffstat (limited to 'searx')
-rw-r--r--searx/engines/google_news.py1
-rw-r--r--searx/engines/vimeo.py4
-rw-r--r--searx/engines/youtube.py1
3 files changed, 2 insertions, 4 deletions
diff --git a/searx/engines/google_news.py b/searx/engines/google_news.py
index b8a7be3ee..72b7a0661 100644
--- a/searx/engines/google_news.py
+++ b/searx/engines/google_news.py
@@ -3,7 +3,6 @@
from urllib import urlencode
from json import loads
from dateutil import parser
-from datetime import datetime
categories = ['news']
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,
diff --git a/searx/engines/youtube.py b/searx/engines/youtube.py
index f6b08b330..895b55918 100644
--- a/searx/engines/youtube.py
+++ b/searx/engines/youtube.py
@@ -1,7 +1,6 @@
from json import loads
from urllib import urlencode
from dateutil import parser
-from datetime import datetime
categories = ['videos']