-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix_-663_error_again #86
Conversation
6f18546
to
b1a5048
Compare
可能ip也会黑了... 麻烦, 今天累计6000条-663了. 我给 |
基本确定了sh001已经和sh004一样了
用 https://app.bilibili.com/x/v2/account/mine 这个还能用,刚试过,如果以后这个api也寄了就离跑路不远了 |
看app抓包怎么样吧... 模仿官方客户端肯定是最稳妥的. (我不会抓手机的https的包, 交给你了😀 我扒扒官方electron的包, 看看有没有什么有用的api, 至少得知道这人大会员有效期大概多长(年度大会员肯定是1年以上, 以此类推) |
最简api: 官方完整api: 返回数据有mid和vip due_time 很好 |
还有个api, 在第一次用access_key获得mid以后就用这个api刷新大会员信息就行了, 也有vip duetime字段 https://api.bilibili.com/x/space/wbi/acc/info?mid=72270557&token=&platform=web {"code":0,"message":"0","ttl":1,"data":{"mid":72270557,"name":"芳斯塔芙","sex":"保密","face":"https://i2.hdslb.com/bfs/face/b6c4669d05df92eb45a410ba1ceb1bba34873f1e.jpg","face_nft":0,"face_nft_type":0,"sign":"芳斯塔芙\u0026鬼谷藏龙 为您带来fun stuff;商务QQ:1243739286;商务微信:Fun_Ghost","rank":10000,"level":6,"jointime":0,"moral":0,"silence":0,"coins":0,"fans_badge":true,"fans_medal":{"show":false,"wear":false,"medal":null},"official":{"role":1,"title":"bilibili 2020百大UP主、知名UP主","desc":"第三届“bilibili 新星计划”获奖者","type":0},"vip":{"type":2,"status":1,"due_date":1688140800000,"vip_pay_type":0,"theme_type":0,"label":{"path":"","text":"年度大会员","label_theme":"annual_vip","text_color":"#FFFFFF","bg_style":1,"bg_color":"#FB7299","border_color":"","use_img_label":true,"img_label_uri_hans":"","img_label_uri_hant":"","img_label_uri_hans_static":"https://i0.hdslb.com/bfs/vip/8d4f8bfc713826a5412a0a27eaaac4d6b9ede1d9.png","img_label_uri_hant_static":"https://i0.hdslb.com/bfs/activity-plat/static/20220614/e369244d0b14644f5e1a06431e22a4d5/VEW8fCC0hg.png"},"avatar_subscript":1,"nickname_color":"#FB7299","role":3,"avatar_subscript_url":"","tv_vip_status":0,"tv_vip_pay_type":0},"pendant":{"pid":0,"name":"","image":"","expire":0,"image_enhance":"","image_enhance_frame":""},"nameplate":{"nid":89,"name":"2020百大UP主","image":"https://i2.hdslb.com/bfs/face/dbc78ef8c88f15171f0d12587fb2731f999483a6.png","image_small":"https://i0.hdslb.com/bfs/face/0d7fc500803d66b8ac4f6c74c10f1adda5c58624.png","level":"稀有勋章","condition":"2020年在创作力、影响力、口碑力等维度综合数据出色的UP主"},"user_honour_info":{"mid":0,"colour":null,"tags":[]},"is_followed":false,"top_photo":"http://i1.hdslb.com/bfs/space/cb1c3ef50e22b6096fde67febe863494caefebad.png","theme":{},"sys_notice":{},"live_room":{"roomStatus":1,"liveStatus":0,"url":"https://live.bilibili.com/21310114?broadcast_type=0\u0026is_room_feed=1","title":"再来说说硅藻的演化","cover":"http://i0.hdslb.com/bfs/live/new_room_cover/f03d4b7acf32d7744dbeff566435c1e0a326547e.jpg","roomid":21310114,"roundStatus":0,"broadcast_type":0,"watched_show":{"switch":true,"num":28,"text_small":"28","text_large":"28人看过","icon":"https://i0.hdslb.com/bfs/live/a725a9e61242ef44d764ac911691a7ce07f36c1d.png","icon_location":"","icon_web":"https://i0.hdslb.com/bfs/live/8d9d0f33ef8bf6f308742752d13dd0df731df19c.png"}},"birthday":"02-21","school":{"name":""},"profession":{"name":"","department":"","title":"","is_show":0},"tags":null,"series":{"user_upgrade_status":3,"show_upgrade_window":false},"is_senior_member":0,"mcn_info":null,"gaia_res_type":0,"gaia_data":null,"is_risk":false,"elec":{"show_info":{"show":true,"state":2,"title":"为TA充电","icon":"","jump_url":"https://www.bilibili.com/h5/upower/index?mid=72270557\u0026navhide=1"}},"contract":null}} 还有 |
那问题就好解决多了, 如果以后 app.bilibili.com/x/v2/account/mine 寄了也没多大事,mid有好多api可以获取 |
这个api不用鉴权, 注意请求并发别太大就行. |
感觉还是得捏个 fake-useragent 来请求 api.bilibili.com/x/space/wbi/acc/info |
测了下,网页请求可以直接跳过 app.bilibili.com/x/v2/account/mine 了, 油猴大概只能通过playurl获取mid |
This comment was marked as outdated.
This comment was marked as outdated.
刚刚看了看, 2个小时1000个-663, 怕是黑ip了... 赶紧换上去试试 |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
应该没问题了, 测试一天就merge吧. Known issues: 非大会员网页端首次访问大会员专享视频, resign会不生效, 原因是拿不到uid. 不过无伤大雅. |
似乎可以用ios的key,
|
js0n说是accesskey和appkey也要对应 |
说起来之前我web请求用的ios的key,然后Android用的Android的key,然后发现还有663,现在想了想应该是play端() |
This comment was marked as resolved.
This comment was marked as resolved.
一个疑问: |
|
js0n那边的意见也写好了, 就是手上没play版测试. 不过应该没问题. eid这个先不管了 差不多就合并吧, 没问题了, 发版0.3.2 |
No description provided.