From ce449695f0b9df41b693b4c2e65e9b225823ce9a Mon Sep 17 00:00:00 2001 From: xiaomengzi06 Date: Thu, 17 Feb 2022 20:34:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E5=89=AF=E6=A0=87=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/__init__.py b/src/__init__.py index 3c9b4e9..83d53b6 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -114,6 +114,8 @@ def parse_book(self, url, book_content): book['authors'].extend([self.get_text(author_element) for author_element in element.findall("..//a")]) elif text.startswith("出版社"): book['publisher'] = self.get_tail(element) + elif text.startswith("副标题"): + book['title'] = book['title'] + ':' + self.get_tail(element) elif text.startswith("出版年"): book['publishedDate'] = self.get_tail(element) elif text.startswith("ISBN"):