Exemple #1
0
 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
Exemple #2
0
 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
Exemple #3
0
 def get_title(self):
     title = GenericNewsPage.get_title(self)
     title = title.split('|')[0]
     return title
Exemple #4
0
 def get_title(self):
     title = GenericNewsPage.get_title(self)
     return title.replace(u' - Libération', '')
Exemple #5
0
 def get_title(self):
     title = GenericNewsPage.get_title(self)
     return title
Exemple #6
0
 def get_title(self):
     title = GenericNewsPage.get_title(self)
     return title.replace(u' - Libération', '')