コード例 #1
0
ファイル: article.py プロジェクト: nojhan/weboob-devel
 def get_author(self):
     author = GenericNewsPage.get_author(self)
     try:
         source = self.document.getroot().xpath("//span[@class='sourceinfo']/a")[0]
         source = source.text
         author = author + " | " + source
         return author
     except:
         return author
コード例 #2
0
ファイル: article.py プロジェクト: lissyx/weboob
 def get_author(self):
     author = GenericNewsPage.get_author(self)
     try:
         source = self.document.getroot().xpath(
                 "//span[@class='sourceinfo']/a")[0]
         source = source.text
         author = author + " | " + source
         return author
     except:
         return author
コード例 #3
0
ファイル: article.py プロジェクト: lissyx/weboob
 def get_title(self):
     title = GenericNewsPage.get_title(self)
     title = title.split('|')[0]
     return title
コード例 #4
0
 def get_title(self):
     title = GenericNewsPage.get_title(self)
     return title.replace(u' - Libération', '')
コード例 #5
0
 def get_title(self):
     title = GenericNewsPage.get_title(self)
     return title
コード例 #6
0
ファイル: article.py プロジェクト: Boussadia/weboob
 def get_title(self):
     title = GenericNewsPage.get_title(self)
     return title.replace(u' - Libération', '')