summaryrefslogtreecommitdiff
path: root/searx/engines/ina.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/engines/ina.py')
-rw-r--r--searx/engines/ina.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/searx/engines/ina.py b/searx/engines/ina.py
index 86a39782b..37a05f099 100644
--- a/searx/engines/ina.py
+++ b/searx/engines/ina.py
@@ -12,11 +12,15 @@
# @todo embedded (needs some md5 from video page)
from json import loads
-from urllib import urlencode
from lxml import html
-from HTMLParser import HTMLParser
-from searx.engines.xpath import extract_text
from dateutil import parser
+from searx.engines.xpath import extract_text
+from searx.url_utils import urlencode
+
+try:
+ from HTMLParser import HTMLParser
+except:
+ from html.parser import HTMLParser
# engine dependent config
categories = ['videos']