Time in twitter feedify
parent
12d48918d8
commit
e98617c320
|
@ -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=
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue