Skip to content

Commit ce0badd

Browse files
committed
fix: weibo source
1 parent 51fa15a commit ce0badd

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

server/sources/weibo.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,14 @@ export interface Actionlog2 {
123123
}
124124

125125
export default defineSource(async () => {
126-
const url = "https://m.weibo.cn/api/container/getIndex?containerid=106003type%3D25%26t%3D3%26disable_hot%3D1%26filter_type%3Drealtimehot"
127-
const res: Root = await myFetch(url)
126+
const url = "https://m.weibo.cn/api/container/getIndex?containerid=106003type%3D25%26t%3D3%26disable_hot%3D1%26filter_type%3Drealtimehot&title=%E5%BE%AE%E5%8D%9A%E7%83%AD%E6%90%9C&extparam=filter_type%3Drealtimehot%26mi_cid%3D100103%26pos%3D0_0%26c_type%3D30%26display_time%3D1540538388&luicode=10000011&lfid=231583"
127+
const res: Root = await myFetch(url, {
128+
headers: {
129+
"referer": "https://s.weibo.com/top/summary?cate=realtimehot",
130+
"mweibo-pwa": "1",
131+
"x-requested-with": "XMLHttpRequest",
132+
},
133+
})
128134
return res.data.cards[0].card_group
129135
.filter((k, i) => i !== 0 && k.desc && !k.actionlog?.ext.includes("ads_word"))
130136
.map((k) => {

0 commit comments

Comments
 (0)