好!欢迎访问迷津渡口 现在时间是: 天气 °C ~ °C

迷津渡口

越感到迷惑 越接近真理

Wireshark抓取百度音乐API记录

为了搞个网页播放器玩玩,主要是需要获得歌单id和歌曲id的api。

大部分网站的API都已经有了,百度歌单的api百度不到,只能自己动手了。


1.环境:

带WIFI的路由器192.168.1.0/24

电脑Ubuntu系统

手机安卓系统


2.电脑软件:

//wireshark用以抓取
sudo apt-get install wireshark
//squid用以架设局域网代理
sudo apt-get install squid


3.配置squid代理,小指安装为squid3版本,没版本号就不用加了~

sudo vim /etc/squid3/squid.conf

修改:

http_access deny all

改为:

http_access allow all

修改 http_port 为 9090,即

http_port 3128

改为

http_port 9090

重启squid:

sudo service squid3 restart


4.获取电脑IP:

ifconfig

小指的电脑IP为:192.168.1.168


5.配置手机WIFI代理:

将手机连上和电脑同一个局域网的WIFI

连接后长按此WIFI SSID大约5秒,弹出框点击修改网络

选择显示高级选项,设置:

    代理设置:手动

    代理服务器主机名:192.168.1.168

    代理服务器端口:9090

保存~


6.配置Wireshark并手机上百度音乐网站进行抓取

配置Wireshark:

    使用管理员账号打开wireshark:

sudo wireshark

    点击Interfaces->勾选eth0->点击Options->Caption Filter输入:

port 9090

点击Start开始抓取,也可以在手机上百度音乐网站前点击开始~


手机端:

关闭其他任何上网的软件,打开浏览器,输入

http://music.baidu.com/home/?fr=mo

电脑端Wireshark点击开始抓取~

手机网页点击歌单导航,然后随意点击一个歌单并播放~

电脑端Wireshark停止抓取,Capture->stop


7.查看抓取的API:

在Wireshark的Filter再输入:

http.request.method=="GET"

回车键确认,测试歌单的ID为7230,根据经验查找包含json样式的,可发现这样一个API:

http://tingapi.ting.baidu.comhttp://tingapi.ting.baidu.com/v1/restserver/ting?from=webapp_music&method=baidu.ting.diy.gedanInfo&format=jsonp&callback=diy_gedanInfo&listid=7230&_=1472741965191

在电脑浏览器输入这个网址,去除不必要的参数,可获得最终的百度音乐歌单API为:

http://tingapi.ting.baidu.com/v1/restserver/ting?from=webapp_music&method=baidu.ting.diy.gedanInfo&listid=歌单ID


授人以鱼不如授人以渔,其他API自己找去吧^_^

点赞4
   支持一下
挤眼 亲亲 咆哮 开心 想想 可怜 糗大了 委屈 哈哈 小声点 右哼哼 左哼哼 疑问 坏笑 赚钱啦 悲伤 耍酷 勾引 厉害 握手 耶 嘻嘻 害羞 鼓掌 馋嘴 抓狂 抱抱 围观 威武 给力
 点赞
 签到
 表情
 图片
 代码
提交评论

清空信息
关闭评论
ejectdicks
 ejectdicks 2019-05-21 22:09回复
#259
<a href="http://www.danielbroman.com/ralph-lauren-long-sleeve-polo-burgundy-poloh">ralph lauren long sleeve polo burgundy</a> <a href="http://www.integrityphx.com/femminile-nike-free-run-3-oro-gituttio-foota">femminile nike free run 3 oro gituttio</a> <a href="http://www.onthecar.com/nike-kobe-x10-royal-blau-wei%C3%9F-turnschuhe-runninga">nike kobe x10 royal blau wei脽 turnschuhe</a> <a href="http://www.sallysoldit.com/asics-gel-noosa-tri-vendita-xfinity-scarpee">asics gel noosa tri vendita xfinity</a> <a href="http://www.hairsalonlush.com/nike-zoom-pegasus-31-femminile-grigio-argento-runningg">nike zoom pegasus 31 femminile grigio argento</a> <a href="http://www.robverheulen.com/nike-air-presto-wei%C3%9F-gr%C3%BCn-schuhei">nike air presto wei脽 gr眉n</a>
ejectdicks http://www.ejectdicks.com/
steugenesband
 steugenesband 2019-05-21 19:03回复
#258
<a href="http://www.ankaraoyunevi.com/nike-roshe-run-floral-light-gr%C3%A5-bl%C3%A5-thread-hvit-hook-obuvk">nike roshe run floral light gr氓 bl氓 thread hvit hook</a> <a href="http://www.iotlsebring.com/nike-air-max-zero-foot-essential-svart-obuvi">nike air max zero foot essential svart</a> <a href="http://www.joshsingleton.com/comprar-nike-flyknit-racer-negro-blanco-zapatosl">comprar nike flyknit racer negro blanco</a> <a href="http://www.amesecolombia.com/air-jordan-retro-10-dark-blu-jade-scarpeh">air jordan retro 10 dark blu jade</a> <a href="http://www.flatshotgame.com/adidas-superstar-womens-grey-and-white-shoesk">adidas superstar womens grey and white</a> <a href="http://www.myrumpun.com/oakley-radarlock-path-polished-green-frame-fire-iridium-lens-sunglassesh">oakley radarlock path polished green frame fire iridium lens</a>
[url=http://www.steugenesband.com/]steugenesband[/url]
trianglescion
 trianglescion 2019-05-21 16:41回复
#257
<a href="http://www.magnindesign.com/new-york-knicks-green-jersey-nflh">new york knicks green jersey</a> <a href="http://www.spinecareuk.com/nike-free-4.0-flyknit-negro-zapatosh">nike free 4.0 flyknit negro</a> <a href="http://www.danteb.com/jordan-1-flight-negro-cehombrest-gris-scarpea">jordan 1 flight negro cehombrest gris</a> <a href="http://www.karlisteffy.com/san-francisco-giants-47-mlb-falton-snapback-cap-hati">san francisco giants 47 mlb falton snapback cap</a> <a href="http://www.festadoano.com/hombres-nike-air-max-2015-negro-naranja-trainersb">hombres nike air max 2015 negro naranja</a> <a href="http://www.bursagti.com/air-jordan-2017-basketbtout-chaussures-bon-march%C3%A9-kurpesd">air jordan 2017 basketbtout chaussures bon march茅</a>
trianglescion http://www.trianglescion.com/
sophiecrooks
 sophiecrooks 2019-05-21 10:21回复
#256
<a href="http://www.setusoftware.com/jordan-eclipse-chukka-gr%C3%B8nn-obuvi">jordan eclipse chukka gr酶nn</a> <a href="http://www.shopteamcubs.com/kvinner-air-jordan-low-future-svart-obuvk">kvinner air jordan low future svart</a> <a href="http://www.danieldavinci.com/adidas-radial-tubular-gr%C3%B8nn-obuvi">adidas radial tubular gr酶nn</a> <a href="http://www.lovirani.com/nike-blazer-high-azul-zapatosl">nike blazer high azul</a> <a href="http://www.rosebites.com/nike-kd-9-peacock-blu-verde-scarpeh">nike kd 9 peacock blu verde</a> <a href="http://www.webrushllc.com/men-nike-air-force-1-25th-low-metalic-dark-blue-shoesk">men nike air force 1 25th low metalic dark blue</a>
sophiecrooks http://www.sophiecrooks.com/
oldhalliwell
 oldhalliwell 2019-05-21 05:24回复
#255
<a href="http://www.sousoushop.com/nike-flynit-air-max-gr%C3%B8nn-s%C3%B8lv-obuvi">nike flynit air max gr酶nn s酶lv</a> <a href="http://www.rcfitcamp.com/nike-air-max-90-bl%C3%A5-gr%C3%B8nn-obuvp">nike air max 90 bl氓 gr酶nn</a> <a href="http://www.milajerdchat.com/nike-kobe-9-low-kvinners-lilla-gr%C3%B8nn-obuvi">nike kobe 9 low kvinners lilla gr酶nn</a> <a href="http://www.girisweb.com/air-yeezy-ii-2-sp-max-90-mujeres-rosado-negro-zapatosp">air yeezy ii 2 sp max 90 mujeres rosado negro</a> <a href="http://www.abcmovieplot.com/white-crossbody-coach-purse-coachh">white crossbody coach purse</a> <a href="http://www.oldhalliwell.com/air-jordan-retro-28-grey-black-shoesj">air jordan retro 28 grey black</a>
oldhalliwell http://www.oldhalliwell.com/
omnicitycorp
 omnicitycorp 2019-05-21 01:23回复
#254
<a href="http://www.romoautocare.com/coach-madison-phoebe-shoulder-bag-coachh">coach madison phoebe shoulder bag</a> <a href="http://www.industrialegy.com/nike-darwin-orange-pink-shoesj">nike darwin orange pink</a> <a href="http://www.bewustvitaal.com/herre-nike-air-presto-gr%C3%B8n-gr%C3%A5-skol">herre nike air presto gr酶n gr氓</a> <a href="http://www.flushandhunt.com/nike-air-max-90-kpu-noir-vert-chaussuresq">nike air max 90 kpu noir vert</a> <a href="http://www.kendalfewster.com/nike-kd-trey-5-or-noir-chaussuresl">nike kd trey 5 or noir</a> <a href="http://www.gisusalon.com/dam%C3%A4nner-nike-air-max-tailwind-7-alle-lila-schuhei">dam盲nner nike air max tailwind 7 alle lila</a>
omnicitycorp http://www.omnicitycorp.com/
sfcigar
 sfcigar 2019-05-20 17:29回复
#253
<a href="http://www.sophiecrooks.com/detroit-tigers-nike-mlb-dri-fit-featherlight-adjustable-cap-hath">detroit tigers nike mlb dri fit featherlight adjustable cap</a> <a href="http://www.hkelitemodels.com/bon-march%C3%A9-nike-free-4.0-flynit-femmes-rouge-noir-chaussuresh">bon march茅 nike free 4.0 flynit femmes rouge noir</a> <a href="http://www.graciecomm.com/air-max-bw-ultra-cool-grau-wei%C3%9F-schuheh">air max bw ultra cool grau wei脽</a>
sfcigar http://www.sfcigar.com/
investicrypto
 investicrypto 2019-05-20 00:03回复
#252
<a href="http://www.rexpousa.com/nike-zoom-vomero-10-bianca-scarpei">nike zoom vomero 10 bianca</a> <a href="http://www.dalvadesign.com/adidas-porsche-design-bounce-s4-cuero-blanco-negro-zapatosh">adidas porsche design bounce s4 cuero blanco negro</a> <a href="http://www.velvetwifi.com/adidas-gazelle-og-gr%C3%A5-hvid-skok">adidas gazelle og gr氓 hvid</a> <a href="http://www.sophiarugby.com/svart-r%C3%B8d-gr%C3%A5-nike-huarache-obuvi">svart r酶d gr氓 nike huarache</a> <a href="http://www.thumbglovepro.com/nike-air-max-tavas-negro-rojo-zapatosl">nike air max tavas negro rojo</a> <a href="http://www.ceracustica.com/ray-ban-sunglasses-rb4165-justin-sunglassesh">ray ban sunglasses rb4165 justin</a>
investicrypto http://www.investicrypto.com/
coach madison phoebe
 coach madison phoebe 2019-05-19 16:05回复
#251
<a href="http://www.showboxi.com/converse-one-star-schwarz-cherry-schuhei">converse one star schwarz cherry</a> <a href="http://www.erzincanet.com/nike-free-run-5.0-m%C3%A6nd-gr%C3%A5-gr%C3%B8n-skoh">nike free run 5.0 m忙nd gr氓 gr酶n</a> <a href="http://www.hoyerequip.com/florida-panthers-jersey-hoodie-nfli">florida panthers jersey hoodie</a> <a href="http://www.oreandacasino.com/svart-adidas-originals-zx-flux-racer-obuvk">svart adidas originals zx flux racer</a> <a href="http://www.floraroja.com/coach-ali-hobo-bag-coachh">coach ali hobo bag</a> <a href="http://www.dazedkayla.com/nike-free-run-5.0-maschio-bianca-scarpej">nike free run 5.0 maschio bianca</a>
coach madison phoebe http://www.wearesmashed.com/coach-madison-phoebe-coachh
industrialegy
 industrialegy 2019-05-19 12:42回复
#250
<a href="http://www.tkbelazig.com/blue-fuzzy-north-face-jacket-northfaceh">blue fuzzy north face jacket</a> <a href="http://www.swiftgrocer.com/herren-nike-roshe-run-high-wei%C3%9F-rosa-schuhej">herren nike roshe run high wei脽 rosa</a> <a href="http://www.warrnamboolag.com/herre-asics-gel-noosa-tri-8-s%C3%B8lv-gul-skoh">herre asics gel noosa tri 8 s酶lv gul</a> <a href="http://www.paineesq.com/nike-blazer-bleu-ciel-rouge-chaussuresh">nike blazer bleu ciel rouge</a> <a href="http://www.gemmatyndall.com/nike-sb-sb-mesh-cap-hatl">nike sb sb mesh cap</a> <a href="http://www.cestreaming.com/adidas-neo-honeycomb-argent-noir-chaussuresh">adidas neo honeycomb argent noir</a>
industrialegy http://www.industrialegy.com/
顶部留言底部
 00:00/00:00
我想和你虚度时光 - 花房姑娘(9)
  1. 我想和你虚度时光
  2. 花房姑娘
  3. 恋恋风尘
  4. 我喜爱一切不彻底的事物
  5. 我的心里是满的
  6. Long Way
  7. 给少年的歌
  8. 晴日共剪窗
  9. 天上的月你的脸