Files
RSSHub/lib/v2/weibo/radar.js
T
f3bf25ffd7 feat(route): Add 微博热搜内容摘要 (#13764)
* fuliba added

* style: auto format

* doc refine for fuliba

* update per lint info

* fix some title and style

* update per SSRF concern comment

* update per SSRF concern during review

* Update lib/v2/fuliba/radar.js

Per comment on naming of title

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* Update website/docs/routes/new-media.mdx

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* turn to wordpress api

* Update website/docs/routes/new-media.mdx

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* wip for fulltext weibo hot

* refine details and doc

* weibo content for hot

* remove emoji img as not friendly while being handled by some reader tool

* format refinement

* fix single card link address

* update per review comment

* doc update

* fetch picture with additional flag

* minor format adjustment

* Update doc with refined example

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* get full picture opition as well

---------

Co-authored-by: shinemoon <shinemoon@foxmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-11-30 23:29:58 +08:00

49 lines
1.5 KiB
JavaScript

module.exports = {
'weibo.com': {
_name: '微博',
'.': [
{
title: '博主',
docs: 'https://docs.rsshub.app/routes/social-media#wei-bo',
source: ['/u/:id', '/:id'],
target: (params, url, document) => {
let uid = document?.documentElement.innerHTML.match(/\$CONFIG\['oid']='(\d+)'/)?.[1];
if (!uid && !isNaN(params.id)) {
uid = params.id;
}
return uid ? `/weibo/user/${uid}` : '';
},
},
{
title: '关键词',
docs: 'https://docs.rsshub.app/routes/social-media#wei-bo',
},
{
title: '超话',
docs: 'https://docs.rsshub.app/routes/social-media#wei-bo',
source: '/p/:id/super_index',
target: '/weibo/super_index/:id',
},
],
s: [
{
title: '热搜榜',
docs: 'https://docs.rsshub.app/routes/social-media#wei-bo',
source: '/top/summary',
target: '/weibo/search/hot/:fulltext?',
},
],
},
'weibo.cn': {
_name: '微博',
m: [
{
title: '博主',
docs: 'https://docs.rsshub.app/routes/social-media#wei-bo',
source: ['/u/:uid', '/profile/:uid'],
target: '/weibo/user/:uid',
},
],
},
};