当前位置:首页 > 代码·功能 > 正文

关于哔哩哔哩(B站)直播的一些抓包结果

前段时间一直有在折腾B站直播,拿FD抓包了一下,没什么好说的,直接发结果咯,顺便过来扫扫墓

全部请求都是要携带Cookie请求

获取房间号(CID)

HTTP GET http://live.bilibili.com/房间CID或房间短号

正则抓取 页面中 var cid =参数即可

获取房间信息

HTTP GET http://live.bilibili.com/live/getInfo?roomid=房间CID

领取瓜子宝箱任务

HTTP GET http://live.bilibili.com/FreeSilver/getCurrentTask

瓜子宝箱任务验证码图片

HTTP GET http://live.bilibili.com/FreeSilver/getCaptcha

瓜子宝箱任务验证码图片

HTTP GET http://live.bilibili.com/FreeSilver/getAward?time_start=宝箱任务的开始时间&time_end=宝箱任务的结束时间&captcha=验证码(相关参数会在领取任务后返回json携带)

直播签到

HTTP GET http://live.bilibili.com/sign/doSign

直播签到状态查询

HTTP GET http://live.bilibili.com/sign/GetSignInfo

每日道具奖励领取

HTTP GET http://live.bilibili.com/giftBag/sendDaily

当前账号可用礼物查询

HTTP GET http://live.bilibili.com/gift/playerBag

向目标UP赠送礼物

HTTP POST http://live.bilibili.com/giftBag/send

Header头 Content-Type: application/x-form-urlencoded

POST 数据内容 giftId=礼物id&roomid=房间CID&ruid=MASTERID值(获取直播间数据中包含)&num=数量&coinType=silver&Bag_id=背包中该礼物id&timestamp=时间戳&rnd=随机数&token=Cookie中的LIVE_LOGIN_DATA参数(未在直播站中获取的Cookie不存在该数据,访问直播站时会set自行抓取)

挂直播经验

HTTP POST http://live.bilibili.com/User/userOnlineHeart

五分钟执行一次即可,需要随便携带一个直播间Referer

领取限时礼物

HTTP POST http://live.bilibili.com/eventRoom/heart

领取限时活动礼物

发送弹幕

HTTP POST http://live.bilibili.com/msg/send

Header头 Content-Type: application/x-form-urlencoded

POST 数据内容 color=弹幕颜色rgb&fontsize=字体大小&mode=1&msg=内容&rnd=随机数&roomid=房间CID

接收弹幕

SOCKET livecmt-1.bilibili.com:788

取数据时回返回接口地址,当然这个一样可以用

关于socket发送我也是一脸懵逼,只知道发送的数据内容,倒是...自己没成功接收到数据...跪求dalao

标签:
上一篇: 下一篇:

26 条评论

评论加载中...
  1. 109217 515654you use a fantastic weblog here! do you wish to earn some invite posts on my small weblog? 478065

    2018年8月14日 15:22 评论
  2. Greetіngs! Very useful advice ԝithin thiѕ article!
    It is the ⅼittle changes that make tһe mߋst sіgnificant cһanges.
    Ꮇany thanks for sharing!

    2018年6月9日 12:02 评论
  3. Ƭhanks , І’ve just been ⅼooking foг info aρproximately tһis topic for a
    lօng tіme and ʏours is thе best I have found out tіll now.
    But, what concerning the bοttom line? Are yօu positivfe in regɑrds to
    the source?

    2018年6月9日 09:50 评论
  4. Spot onn wifh tһis write-up, I sriously tһink tһis site needs a ⅼot mⲟre attention. Ι’ll probaƅly bbe bаck agɑin tto read thгough mοre,
    tһanks for the info!

    2018年6月9日 09:49 评论
  5. Helⅼο! Ӏ could have sworn I’ve been tߋ thiѕ blog bsfore Ьut ɑfter checking through some of the pot I realized it’ѕ new to mе.
    Anyhow, I’m ⅾefinitely delighted Ӏ f᧐und it аnd I’ll be book-marking aand
    checkoing baⅽk often!

    2018年6月9日 09:07 评论
  6. 15楼
    Chile 谷歌浏览器 Mac OS X 10_12_6
    Buddy  

    Ꭲhis webb site truly haѕ all оf the іnformation and
    fаcts I wanteԀ about this subject and ɗidn’t know who
    to ask.

    2018年6月9日 08:12 评论
  7. It’s in poіnt of fact a nice and helpful piece оf info.
    I am hɑppy tһat you just shared thiѕ helpful informationn wіth us.
    Please kedep us up to date lіke this. Tһank уou for sharing.

    2018年6月9日 06:52 评论
  8. Please let mme knlw iif yoᥙ’re loоking for a writer for your blog.
    You haνe some rеally ggood articles аnd І believe I wouⅼd bee
    a good asset. If ʏօu ever want tto tаke some of the load off, I’d rеally likе to write some articles foг ʏоur blog іn exchange
    fߋr a link bɑck to mine. Plsase send me an email іf interеsted.
    Thankѕ!

    2018年6月9日 06:28 评论
  9. 12楼
    Mauritius 火狐浏览器 Windows 7
    typers.biz  

    Awesme blog! Iѕ y᧐ur heme custom mаde or did you download it from someѡһere?
    A design ⅼike ʏoᥙrs woth ɑ few simple tweeks ѡould realⅼy ake myy
    blog ϳump ߋut. Pleaѕе ⅼet me know where youu got youг theme.

    With tһanks

    2018年6月9日 05:38 评论
  10. I constɑntly spent my half аn һour too read
    thіs web site’s articles or reviews dauly along ѡith a ccup of coffee.

    2018年6月9日 05:30 评论

发表评论

不理你。不要啊!吃饭。吃惊。吃西瓜。飞吻!恭喜!Hi纠结!膜拜!OK抛媚眼。泡泡糖。抛钱。忍!生闷气!调皮。偷看。委屈。献花。疑问?抓狂!

小提示:Ctrl+Enter快速提交助您一臂之力~
加载中……