Skip to content

Commit

Permalink
fix(source): migrate fastbull.cn to fastbull.com/cn
Browse files Browse the repository at this point in the history
  • Loading branch information
ourongxing committed Nov 21, 2024
1 parent e78f724 commit 06d7e3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions server/sources/fastbull.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import * as cheerio from "cheerio"
import type { NewsItem } from "@shared/types"

const express = defineSource(async () => {
const baseURL = "https://www.fastbull.cn"
const html: any = await myFetch(`${baseURL}/express-news`)
const baseURL = "https://www.fastbull.com"
const html: any = await myFetch(`${baseURL}/cn/express-news`)
const $ = cheerio.load(html)
const $main = $(".news-list")
const news: NewsItem[] = []
Expand All @@ -26,8 +26,8 @@ const express = defineSource(async () => {
})

const news = defineSource(async () => {
const baseURL = "https://www.fastbull.cn"
const html: any = await myFetch(`${baseURL}/news`)
const baseURL = "https://www.fastbull.com"
const html: any = await myFetch(`${baseURL}/cn/news`)
const $ = cheerio.load(html)
const $main = $(".trending_type")
const news: NewsItem[] = []
Expand Down
1 change: 0 additions & 1 deletion server/sources/xueqiu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ const hotstock = defineSource(async () => {
cookie: cookie.join("; "),
},
})
console.log(res)
return res.data.items.filter(k => !k.ad).map(k => ({
id: k.code,
url: `https://xueqiu.com/s/${k.code}`,
Expand Down

0 comments on commit 06d7e3b

Please sign in to comment.