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