From bb3d1b49c7721b75df7fc6101a29f2bb50836236 Mon Sep 17 00:00:00 2001 From: Tony Date: Tue, 11 Jun 2024 01:11:47 +0800 Subject: [PATCH] fix(route): finviz (#15867) --- lib/routes/finviz/news.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/routes/finviz/news.ts b/lib/routes/finviz/news.ts index 8ef797301..a6068a58b 100644 --- a/lib/routes/finviz/news.ts +++ b/lib/routes/finviz/news.ts @@ -32,9 +32,9 @@ export const route: Route = { maintainers: ['nczitzk'], handler, url: 'finviz.com/news.ashx', - description: `| News | Blog | + description: `| News | Blogs | | ---- | ---- | - | news | blog |`, + | news | blogs |`, }; async function handler(ctx) { @@ -54,7 +54,7 @@ async function handler(ctx) { const items = $('table.table-fixed') .eq(categories[category.toLowerCase()]) - .find('tr.nn') + .find('tr') .slice(0, limit) .toArray() .map((item) => { @@ -77,7 +77,7 @@ async function handler(ctx) { link: a.prop('href'), description: descriptionMatches ? descriptionMatches[1] : undefined, author: authorMatches ? authorMatches[1].replaceAll('-', ' ') : 'finviz', - pubDate: timezone(parseDate(item.find('td.nn-date').text(), ['HH:mmA', 'MMM-DD']), -4), + pubDate: timezone(parseDate(item.find('td.news_date-cell').text(), ['HH:mmA', 'MMM-DD']), -4), }; }) .filter((item) => item.title);