Permalink
Browse files

better parsing of start_date and end_date for positions and better pa…

…rsing of twitter accounts
  • Loading branch information...
1 parent ccc0c8b commit 1dec06140c628517a4a64e6b215d96d8e2c4de85 philgo20 committed Feb 21, 2011
Showing with 6 additions and 3 deletions.
  1. +6 −3 liclient/parsers/lixml.py
@@ -243,9 +243,12 @@ def __init__(self, content):
'id': etree.XPath('id'),
'title': etree.XPath('title'),
'summary': etree.XPath('summary'),
- 'start-date': etree.XPath('start-date/year'),
- 'end-date': etree.XPath('end-date/year'),
- 'is-current': etree.XPath('is-current'),
+ 'start-date-year': etree.XPath('start-date/year'),
+ 'end-date-year': etree.XPath('end-date/year'),
+ 'start-date-month': etree.XPath('start-date/month'),
+ 'end-date-month': etree.XPath('end-date/month'),
+ 'is-current': etree.XPath('is-current'),
+ 'company-id': etree.XPath('company/id'),
'company': etree.XPath('company/name')
}
self.results = self.__build_data(self.tree)

0 comments on commit 1dec061

Please sign in to comment.