From 8263dbff71fee5d15f420502dfec2f4c18f8fe80 Mon Sep 17 00:00:00 2001 From: Ou Date: Sun, 3 Nov 2024 01:00:39 +0800 Subject: [PATCH] fix(source): producthunt items selector --- server/sources/producthunt.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/sources/producthunt.ts b/server/sources/producthunt.ts index 713f871..4e4c719 100644 --- a/server/sources/producthunt.ts +++ b/server/sources/producthunt.ts @@ -5,7 +5,7 @@ export default defineSource(async () => { const baseURL = "https://www.producthunt.com/" const html: any = await myFetch(baseURL) const $ = cheerio.load(html) - const $main = $("[data-test^=post-item]") + const $main = $("[data-test=homepage-section-0] [data-test^=post-item]") const news: NewsItem[] = [] $main.each((_, el) => { const a = $(el).find("a").first()