From 11270cbbdc23775450de1ca88c77e9e76ce02cae Mon Sep 17 00:00:00 2001 From: Henry Wang Date: Wed, 12 Sep 2018 04:57:54 +0100 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=BE=8E=E6=B9=83=E6=96=B0?= =?UTF-8?q?=E9=97=BB=E6=9D=A1=E7=9B=AE=E8=BF=87=E5=A4=9A=E8=B6=85=E6=97=B6?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=20(#684)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/thepaper/featured.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/routes/thepaper/featured.js b/routes/thepaper/featured.js index 016aab3cb..54900353c 100644 --- a/routes/thepaper/featured.js +++ b/routes/thepaper/featured.js @@ -16,7 +16,9 @@ module.exports = async (ctx) => { const data = res.data; const $ = cheerio.load(data); - const list = $('p.news_tit01, div.news_tit02').get(); + const list = $('p.news_tit01, div.news_tit02') + .slice(0, 10) + .get(); const out = await Promise.all( list.map(async (item) => {