Skip to content

Commit

Permalink
docs(route)(weibo): minor update (DIYgod#9438)
Browse files Browse the repository at this point in the history
add a warning about different responses in different regions
add my username to the author fields of `user` and `timeline`

Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>
  • Loading branch information
Rongronggg9 authored and RikkaBlue committed Apr 9, 2022
1 parent 997299f commit e41e5f0
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions docs/social-media.md
Original file line number Diff line number Diff line change
Expand Up @@ -1171,6 +1171,13 @@ rule

## 微博

::: warning 注意

微博会针对请求的来源地区返回不同的结果。\
一个已知的例子为:部分视频因未知原因仅限中国大陆境内访问 (CDN 域名为 `locallimit.us.sinaimg.cn` 而非 `f.video.weibocdn.com`)。若一条微博含有这种视频且 RSSHub 实例部署在境外,抓取到的微博可能不含视频。将 RSSHub 部署在境内有助于抓取这种视频,但阅读器也必须处于境内网络环境以加载视频。

:::

对于微博内容,在 `routeParams` 参数中以 query string 格式指定选项,可以控制输出的样式

|| 含义 | 接受的值 | 默认值 |
Expand Down Expand Up @@ -1202,7 +1209,7 @@ rule

### 博主

<Route author="DIYgod iplusx" example="/weibo/user/1195230310" path="/weibo/user/:uid/:routeParams?" :paramsDesc="['用户 id, 博主主页打开控制台执行 `$CONFIG.oid` 获取', '额外参数;请参阅上面的说明和表格;特别地,当 `routeParams=1` 时开启微博视频显示']" anticrawler="1" radar="1" rssbud="1">
<Route author="DIYgod iplusx Rongronggg9" example="/weibo/user/1195230310" path="/weibo/user/:uid/:routeParams?" :paramsDesc="['用户 id, 博主主页打开控制台执行 `$CONFIG.oid` 获取', '额外参数;请参阅上面的说明和表格;特别地,当 `routeParams=1` 时开启微博视频显示']" anticrawler="1" radar="1" rssbud="1">

部分博主仅登录可见,不支持订阅,可以通过打开 `https://m.weibo.cn/u/:uid` 验证

Expand Down Expand Up @@ -1231,7 +1238,7 @@ rule

### 个人时间线

<Route author="zytomorrow DIYgod" example="/weibo/timeline/3306934123" path="/weibo/timeline/:uid/:feature?/:routeParams?" :paramsDesc="['用户的uid', ' 过滤类型ID,0:全部、1:原创、2:图片、3:视频、4:音乐,默认为0。', '额外参数;请参阅上面的说明和表格']" anticrawler="1" selfhost="1">
<Route author="zytomorrow DIYgod Rongronggg9" example="/weibo/timeline/3306934123" path="/weibo/timeline/:uid/:feature?/:routeParams?" :paramsDesc="['用户的uid', ' 过滤类型ID,0:全部、1:原创、2:图片、3:视频、4:音乐,默认为0。', '额外参数;请参阅上面的说明和表格']" anticrawler="1" selfhost="1">

::: warning 注意

Expand Down

0 comments on commit e41e5f0

Please sign in to comment.