Time in twitter feedify

master
pictuga 2013-10-09 00:50:10 +02:00
parent 12d48918d8
commit e98617c320
2 changed files with 3 additions and 0 deletions

View File

@ -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=

View File

@ -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