diff --git a/src/models/crawlers/fc2.py b/src/models/crawlers/fc2.py index c43550b..ad51c75 100644 --- a/src/models/crawlers/fc2.py +++ b/src/models/crawlers/fc2.py @@ -14,9 +14,9 @@ def getTitle(html): # 获取标题 - result = html.xpath('//h3/text()') + result = html.xpath('//div[@data-section="userInfo"]//h3/span/../text()') if result: - result = result[0] + result = ' '.join(result) else: result = '' return result