From a7c9154e059a771db8ae9fa2cda910f322c717d2 Mon Sep 17 00:00:00 2001 From: lyqluis <39592732+lyqluis@users.noreply.github.com> Date: Thu, 30 Mar 2023 03:34:25 +0800 Subject: [PATCH] fix: segmentfault/channel (#12191) * chore(deps): bump proxy-chain from 2.2.1 to 2.3.0 Bumps [proxy-chain](https://github.com/apify/proxy-chain) from 2.2.1 to 2.3.0. - [Release notes](https://github.com/apify/proxy-chain/releases) - [Changelog](https://github.com/apify/proxy-chain/blob/master/CHANGELOG.md) - [Commits](https://github.com/apify/proxy-chain/compare/v2.2.1...v2.3.0) --- updated-dependencies: - dependency-name: proxy-chain dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * fix(route): /segmentfault/channel * style: auto format --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- lib/v2/segmentfault/channel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/v2/segmentfault/channel.js b/lib/v2/segmentfault/channel.js index de62204f14..5360159045 100644 --- a/lib/v2/segmentfault/channel.js +++ b/lib/v2/segmentfault/channel.js @@ -16,8 +16,8 @@ module.exports = async (ctx) => { const list = $('ul.bg-transparent.list-group.list-group-flush > li') .slice(0, 10) .map((_, item) => ({ - link: new URL($(item).find('div.content > h5 > a').attr('href'), host).href, - title: $(item).find('div.content > h5 > a').text(), + link: new URL($(item).find('div.content > h3.h5 > a').attr('href'), host).href, + title: $(item).find('div.content > h3.h5 > a').text(), author: $(item).find('span.name').text(), })) .get();