new markup for title

pull/95/head
eric 2018-08-08 23:09:39 -04:00
parent a74f9d20fc
commit d6d6841515
1 changed files with 8 additions and 4 deletions

View File

@ -72,10 +72,14 @@ class SpringerScraper(BaseScraper):
value = ''
if el:
value = el.text.strip()
if value:
value = value.replace('\n', ': ', 1)
self.set('title', value)
if not value:
else:
el = self.doc.select_one('.page-title')
if el:
value = el.text.strip()
if value:
value = value.replace('\n', ': ', 1)
self.set('title', value)
else:
super(SpringerScraper, self).get_title()
def get_role(self):