From de1c9231ad5c0dc95a3c3a9ac68abe58b220ab1f Mon Sep 17 00:00:00 2001 From: Yoshiko <42309414+yoshiko2@users.noreply.github.com> Date: Mon, 27 Jan 2020 12:58:57 +0800 Subject: [PATCH] Update 2.3 --- fanza.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fanza.py b/fanza.py index 34f21c8..c355024 100644 --- a/fanza.py +++ b/fanza.py @@ -50,9 +50,9 @@ def getYear(getRelease): def getRelease(a): html = etree.fromstring(a, etree.HTMLParser()) # //table/tr[1]/td[1]/text() try: - result1 = html.xpath("//td[contains(text(),'商品発売日:')]/following-sibling::td/a/text()")[0].lstrip('\n') + result1 = html.xpath("//td[contains(text(),'発売日:')]/following-sibling::td/a/text()")[0].lstrip('\n') except: - result1 = html.xpath("//td[contains(text(),'商品発売日:')]/following-sibling::td/text()")[0].lstrip('\n') + result1 = html.xpath("//td[contains(text(),'発売日:')]/following-sibling::td/text()")[0].lstrip('\n') return result1 def getTag(a): html = etree.fromstring(a, etree.HTMLParser()) # //table/tr[1]/td[1]/text()