v/pol
1
0
mirror of https://github.com/taroved/pol synced 2025-05-28 03:50:08 -07:00

no sql log

This commit is contained in:
Your Name 2017-09-22 13:45:17 +00:00 committed by Alexandr Nesterenko
parent 6aefb2dbcd
commit 35c382553c

View File

@ -41,7 +41,7 @@ def fill_time(feed_id, items):
h = md5('')
for key in ['title', 'description', 'link']:
if key in item:
h.update(item[key].encode('utf-8'))
h.update(item[key].encode('utf-8'))
item['md5'] = h.hexdigest()
#fetch dates from db
@ -97,7 +97,7 @@ def buildFeed(response, feed_config):
selector = response.selector
tree = selector.root.getroottree()
# get data from html
# get data from html
items = []
#import pdb;pdb.set_trace()
for node in selector.xpath(feed_config['xpath']):