fix: produthunt url (#85)

fixed #56
This commit is contained in:
Jianling Zhong
2025-03-26 23:56:56 +08:00
committed by GitHub
parent 654bfd1651
commit 047ea4cfeb
+1 -1
View File
@@ -2,7 +2,7 @@ import * as cheerio from "cheerio"
import type { NewsItem } from "@shared/types"
export default defineSource(async () => {
const baseURL = "https://www.producthunt.com/"
const baseURL = "https://www.producthunt.com"
const html: any = await myFetch(baseURL)
const $ = cheerio.load(html)
const $main = $("[data-test=homepage-section-0] [data-test^=post-item]")