mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
* 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>
49 lines
1.5 KiB
JavaScript
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',
|
|
},
|
|
],
|
|
},
|
|
};
|