好!欢迎访问迷津渡口 现在时间是: 天气 °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
   支持一下
挤眼 亲亲 咆哮 开心 想想 可怜 糗大了 委屈 哈哈 小声点 右哼哼 左哼哼 疑问 坏笑 赚钱啦 悲伤 耍酷 勾引 厉害 握手 耶 嘻嘻 害羞 鼓掌 馋嘴 抓狂 抱抱 围观 威武 给力
 点赞
 签到
 表情
 图片
 代码
提交评论

清空信息
关闭评论
lmladeco
 lmladeco 2019-04-22 01:30回复
#202
<a href="http://www.xescortx.com/air-jordan-retro-1-brot-wei%C3%9F-schuheh">air jordan retro 1 brot wei脽</a> <a href="http://www.naturabottega.com/men-nike-air-max-tn-black-red-2-shoesk">men nike air max tn black red 2</a> <a href="http://www.peddlir.com/brown-and-tan-michael-kors-bag-mkh">brown and tan michael kors bag</a> <a href="http://www.snowdaydc.com/nike-free-5.0-run-2014-gr%C3%A5-gr%C3%B8nn-obuvi">nike free 5.0 run 2014 gr氓 gr酶nn</a> <a href="http://www.alliesindex.com/nike-magista-arancia-nero-scarpek">nike magista arancia nero</a> <a href="http://www.cafekem.com/nike-stefan-janoski-white-womens-shoesi">nike stefan janoski white womens</a>
lmladeco http://www.lmladeco.com/
swiftgrocer
 swiftgrocer 2019-04-22 00:29回复
#201
<a href="http://www.shiftcampus.com/florida-state-seminoles-top-of-the-world-ncaa-flagtacular-cap-hath">florida state seminoles top of the world ncaa flagtacular cap</a> <a href="http://www.fiestanetwork.com/hommes-asics-gel-noosa-tri-7-blanc-violet-chaussuresh">hommes asics gel noosa tri 7 blanc violet</a> <a href="http://www.sunbeltsaves.com/femminile-nike-free-tr-fit-tutti-viola-scarpel">femminile nike free tr fit tutti viola</a> <a href="http://www.drmastella.com/air-jordan-retro-4-purple-green-shoesj">air jordan retro 4 purple green</a> <a href="http://www.khzrubber.com/nike-blazer-gr%C3%B8n-r%C3%B8d-skoi">nike blazer gr酶n r酶d</a> <a href="http://www.jkdeskisehir.com/nike-lebron-10-low-rosso-plum-scarpeq">nike lebron 10 low rosso plum</a>
[url=http://www.swiftgrocer.com/]swiftgrocer[/url]
shaneboothmx
 shaneboothmx 2019-04-21 19:57回复
#200
<a href="http://www.alterwina.com/nike-sb-long-sleeve-polo-poloh">nike sb long sleeve polo</a> <a href="http://www.fajarmuda.com/nike-roshe-run-sort-cargo-khaki-skok">nike roshe run sort cargo khaki</a> <a href="http://www.nohvfx.com/converse-high-blau-schuheh">converse high blau</a> <a href="http://www.prepperdays.com/nike-air-max-plus-satin-red-shoesk">nike air max plus satin red</a> <a href="http://www.xlectures.com/adidas-tubular-strap-gr%C3%B8n-skol">adidas tubular strap gr酶n</a> <a href="http://www.masvidalyoga.com/menn-salomon-s-lab-fellcross-2-svart-gul-obuvk">menn salomon s lab fellcross 2 svart gul</a>
shaneboothmx http://www.shaneboothmx.com/
websiteopmaat
 websiteopmaat 2019-04-20 08:25回复
#199
<a href="http://www.champste.com/lime-vert-nike-free-run-5.0-chaussuresl">lime vert nike free run 5.0</a> <a href="http://www.rollaname.com/le-coq-sportif-frau-nylon-wei%C3%9F-rosa-schuhej">le coq sportif frau nylon wei脽 rosa</a> <a href="http://www.sfcigar.com/nike-lebron-13-elite-rot-schuhei">nike lebron 13 elite rot</a> <a href="http://www.slotoyunpro.com/nike-flyknit-3.0-svart-obuvj">nike flyknit 3.0 svart</a> <a href="http://www.eistyles.com/nike-lebron-soldier-10-verde-bianca-scarpel">nike lebron soldier 10 verde bianca</a> <a href="http://www.filmoriental.com/nike-internationalist-burgundy-rose-chaussuresh">nike internationalist burgundy rose</a>
websiteopmaat http://www.websiteopmaat.com/
admitoneuk
 admitoneuk 2019-04-20 04:09回复
#198
<a href="http://www.postthatass.com/m%C3%A6nd-nike-air-max-tn-sort-hvid-l%C3%A6der-skoj">m忙nd nike air max tn sort hvid l忙der</a> <a href="http://www.houseoftys.com/adidas-protator-absolado-replacem%C3%A4nnert-studs-schuheh">adidas protator absolado replacem盲nnert studs</a> <a href="http://www.amvdiplomados.com/nike-air-max-90-sneakerboot-grey-black-shoesk">nike air max 90 sneakerboot grey black</a> <a href="http://www.ybsimports.com/michael-kors-jet-set-wallet-small-mkh">michael kors jet set wallet small</a> <a href="http://www.rochlockyer.com/nike-tiempo-legend-iv-hvit-bl%C3%A5-obuvi">nike tiempo legend iv hvit bl氓</a> <a href="http://www.allsocialdata.com/tutti-grigio-nike-cortez-scarpek">tutti grigio nike cortez</a>
admitoneuk http://www.admitoneuk.com/
htpmimoza
 htpmimoza 2019-04-19 18:17回复
#197
<a href="http://www.gaiaescort.com/atlanta-falcons-fitted-cap-hatj">atlanta falcons fitted cap</a> <a href="http://www.hatbest.com/nike-kwazi-tutti-nero-scarpej">nike kwazi tutti nero</a> <a href="http://www.playcheater.com/blau-nike-hypervenom-phantom-schuhei">blau nike hypervenom phantom</a> <a href="http://www.alanyalinks.com/herre-nike-air-max-1-r%C3%B8d-skoh">herre nike air max 1 r酶d</a> <a href="http://www.mxclimited.com/33-kareem-abdul-jabbar-jersey-bucks-nfli">33 kareem abdul jabbar jersey bucks</a> <a href="http://www.ueaydin.com/nike-air-max-97-svart-hvit-obuvk">nike air max 97 svart hvit</a>
htpmimoza http://www.htpmimoza.com/
plusbolivia
 plusbolivia 2019-04-19 03:19回复
#196
<a href="http://www.bgaddiict.com/nike-kobe-xi-elite-white-shoesk">nike kobe xi elite white</a> <a href="http://www.deriogolf.com/nike-air-max-90-sneakerboot-gr%C3%B8n-skoj">nike air max 90 sneakerboot gr酶n</a> <a href="http://www.poluscompany.com/adidas-gazelle-dam%C3%A4nner-pale-rosa-schuheh">adidas gazelle dam盲nner pale rosa</a> <a href="http://www.pariswebjob.com/nike-light-up-bear-shoesk">nike light up bear</a> <a href="http://www.dakvideo.com/backpack-purse-mk-mkh">backpack purse mk</a> <a href="http://www.freshkeema.com/mennns-gel-quantum-360-svart-gr%C3%A5-obuvi">mennns gel quantum 360 svart gr氓</a>
plusbolivia http://www.plusbolivia.com/
kalrakis
 kalrakis 2019-04-17 20:08回复
#195
<a href="http://www.setusoftware.com/nike-air-max-one-essential-grey-shoesk">nike air max one essential grey</a> <a href="http://www.shopteamcubs.com/nike-w-air-max-plus-se-plum-fog-hvid-skol">nike w air max plus se plum fog hvid</a> <a href="http://www.danieldavinci.com/nike-sb-stefan-janoski-max-l%C3%A6r-hvit-svart-obuvk">nike sb stefan janoski max l忙r hvit svart</a> <a href="http://www.lovirani.com/jordan-eclipse-grigio-and-rosa-scarpei">jordan eclipse grigio and rosa</a> <a href="http://www.rosebites.com/boost-negro-adidas-zapatosh">boost negro adidas</a> <a href="http://www.webrushllc.com/nike-lab-air-max-2018-fl%C3%A5den-bl%C3%A5-hvid-skok">nike lab air max 2018 fl氓den bl氓 hvid</a>
kalrakis http://www.kalrakis.com/
colintilley
 colintilley 2019-04-17 19:48回复
#194
<a href="http://www.koreazp.com/maschio-nike-air-presto-blu-oro-scarpej">maschio nike air presto blu oro</a> <a href="http://www.hiltonskyshop.com/mens-nike-air-max-tailwind-8-pink-green-shoesh">mens nike air max tailwind 8 pink green</a> <a href="http://www.lavaforchange.com/air-jordan-future-mujeres-rojo-p%C3%BArpura-zapatosk">air jordan future mujeres rojo p煤rpura</a> <a href="http://www.lifeonfilms.com/under-armour-curry-1-low-oro-rojo-zapatosp">under armour curry 1 low oro rojo</a> <a href="http://www.midlandroofer.com/gray-denali-north-face-northfaceh">gray denali north face</a> <a href="http://www.pearsonchool.com/air-jordan-after-game-minzgr%C3%BCn-gelb-schuhej">air jordan after game minzgr眉n gelb</a>
colintilley http://www.colintilley.com/
bourseasie
 bourseasie 2019-04-17 14:53回复
#193
<a href="http://www.adanastarpen.com/nike-air-max-90-vt-oro-cielo-blu-scarpej">nike air max 90 vt oro cielo blu</a> <a href="http://www.actconfident.com/womens-nike-air-huarache-nm-black-blue-shoesh">womens nike air huarache nm black blue</a> <a href="http://www.erzurumihl.com/nike-shox-current-negro-blanco-zapatosk">nike shox current negro blanco</a> <a href="http://www.candctowingil.com/nike-kobe-9-low-mujeres-negro-cielo-azul-zapatosp">nike kobe 9 low mujeres negro cielo azul</a> <a href="http://www.onlysidekick.com/north-face-hyvent-jacket-review-northfaceh">north face hyvent jacket review</a> <a href="http://www.rmmassage.com/air-jordan-retro-4-minzgr%C3%BCn-rot-schuhej">air jordan retro 4 minzgr眉n rot</a>
bourseasie http://www.bourseasie.com/
顶部留言底部
 00:00/00:00
我想和你虚度时光 - 花房姑娘(9)
  1. 我想和你虚度时光
  2. 花房姑娘
  3. 恋恋风尘
  4. 我喜爱一切不彻底的事物
  5. 我的心里是满的
  6. Long Way
  7. 给少年的歌
  8. 晴日共剪窗
  9. 天上的月你的脸