parent
d0b546cc15
commit
e34a6a5d5c
1 changed files with 3 additions and 1 deletions
|
|
@ -28,5 +28,7 @@ class TranslatePage(BasePage):
|
|||
def get_translation(self):
|
||||
for tr in self.document.getiterator('tr'):
|
||||
if tr.attrib.get('class','') == 'odd' or tr.attrib.get('class','') == 'even':
|
||||
return u''+tr.getchildren()[0].getchildren()[0].text
|
||||
for td in tr.getiterator('td'):
|
||||
if td.attrib.get('class','') == 'ToWrd':
|
||||
return u''+td.text
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue