[fix] remove unused imports ++ pep8

This commit is contained in:
Adam Tauber 2014-03-18 19:24:01 +01:00
parent f104553af4
commit ce08abe223
3 changed files with 2 additions and 4 deletions

View File

@ -3,7 +3,6 @@
from urllib import urlencode from urllib import urlencode
from json import loads from json import loads
from dateutil import parser from dateutil import parser
from datetime import datetime
categories = ['news'] categories = ['news']

View File

@ -2,7 +2,6 @@ from urllib import urlencode
from HTMLParser import HTMLParser from HTMLParser import HTMLParser
from lxml import html from lxml import html
from xpath import extract_text from xpath import extract_text
from datetime import datetime
from dateutil import parser from dateutil import parser
base_url = 'http://vimeo.com' base_url = 'http://vimeo.com'
@ -43,7 +42,8 @@ def response(resp):
url = base_url + result.xpath(url_xpath)[0] url = base_url + result.xpath(url_xpath)[0]
title = p.unescape(extract_text(result.xpath(title_xpath))) title = p.unescape(extract_text(result.xpath(title_xpath)))
thumbnail = extract_text(result.xpath(content_xpath)[0]) 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, results.append({'url': url,
'title': title, 'title': title,

View File

@ -1,7 +1,6 @@
from json import loads from json import loads
from urllib import urlencode from urllib import urlencode
from dateutil import parser from dateutil import parser
from datetime import datetime
categories = ['videos'] categories = ['videos']