@@ -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]")
|
||||
|
||||
Reference in New Issue
Block a user