From 10f18deed4ec9794560d4480321bc99c5311d56c Mon Sep 17 00:00:00 2001 From: umm233 <32997707+umm233@users.noreply.github.com> Date: Thu, 2 Apr 2020 21:02:34 +0800 Subject: [PATCH] fix: make title right (#4374) --- lib/routes/caixin/category.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/caixin/category.js b/lib/routes/caixin/category.js index b8f1f9df27..f27e58aa36 100644 --- a/lib/routes/caixin/category.js +++ b/lib/routes/caixin/category.js @@ -15,7 +15,7 @@ module.exports = async (ctx) => { }); const $ = cheerio.load(response.data); - const title = $('#p1').text() + ' - ' + $('#pL').text(); + const title = $('title').text(); const list = $('.stitXtuwen_list dl dd'); const items = [];