From e98617c320ade5ca5fe0b141ebc2d8bb915cded4 Mon Sep 17 00:00:00 2001 From: pictuga Date: Wed, 9 Oct 2013 00:50:10 +0200 Subject: [PATCH] Time in twitter feedify --- feedify.ini | 1 + feedify.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/feedify.ini b/feedify.ini index 596cc01..176d26b 100644 --- a/feedify.ini +++ b/feedify.ini @@ -9,6 +9,7 @@ items= //div[class=tweet] item_title= .//span[class=username]//text() item_link= .//a[class=details]/@href item_content= .//p[class=tweet-text] +item_time= .//span/@data-time [google] path= diff --git a/feedify.py b/feedify.py index 3f94f2e..db5cc3f 100644 --- a/feedify.py +++ b/feedify.py @@ -70,6 +70,8 @@ def build(link, data=None): feedItem['desc'] = getString(item, rule['item_desc']) if 'item_content' in rule: feedItem['content'] = getString(item, rule['item_content']) + if 'item_time' in rule: + feedItem['updated'] = getString(item, rule['item_time']) feed.items.append(feedItem) return feed