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

清空信息
关闭评论
gushandyman
 gushandyman 约 17 小时前回复
#89
<a href="http://www.mynewsoutlet.com/jordan-11-galaxy-costume-made-shoesc">jordan 11 galaxy costume made</a> <a href="http://www.guesthousesas.com/nike-air-more-uptempo-womens-red-grey-skog">nike air more uptempo womens red grey</a> <a href="http://www.paleofasting.com/bon-march%C3%A9-nike-air-max-1-hommes-argent-sportsf">bon march茅 nike air max 1 hommes argent</a> <a href="http://www.sedefmobilyam.com/adidas-ultra-boost-laceless-shoes-runningd">adidas ultra boost laceless shoes</a> <a href="http://www.kuaforylmz.com/elite-navy-blue-doug-baldwin-super-bowl-xlix-home-jersey-89-seattle-seahawks-nk282458-nflg">elite navy blue doug baldwin super bowl xlix home jersey 89 seattle seahawks nk282458</a> <a href="http://www.danceaution.com/nike-pegasus-33-grey-quartz-skoa">nike pegasus 33 grey quartz</a>
gushandyman http://www.gushandyman.com/
anthillprague
 anthillprague 2019-02-15 12:31回复
#88
<a href="http://www.isiklardamper.com/ralph-lauren-ita-signature-big-sporty-polo-pony-gr%C3%BCn-polox">ralph lauren ita signature big sporty polo pony gr眉n</a> <a href="http://www.kalimias.com/adidas-john-wtout-2-vert-marron-schuhed">adidas john wtout 2 vert marron</a> <a href="http://www.leesgoedplus.com/nike-air-max-90-hyp-qs-hyperfuse-rosso-scarpec">nike air max 90 hyp qs hyperfuse rosso</a> <a href="http://www.ottomanplaza.com/nike-womens-rob-gronkowski-limited-navy-blue-jersey-new-england-patriots-nfl-87-therma-long-sleeve-nflw">nike womens rob gronkowski limited navy blue jersey new england patriots nfl 87 therma long sleeve</a> <a href="http://www.emazoncentral.com/red-dante-pettis-limited-jersey-mens-18-nike-nfl-san-francisco-49ers-vapor-untouchable-home-nflz">red dante pettis limited jersey mens 18 nike nfl san francisco 49ers vapor untouchable home</a> <a href="http://www.lieupekings.com/femminile-nike-roshe-yeezy-boost-nero-oro-kurpesa">femminile nike roshe yeezy boost nero oro</a>
anthillprague http://www.anthillprague.com/
cloudsmartin
 cloudsmartin 2019-02-14 21:58回复
#87
<a href="http://www.freizeittrend.com/billig-nike-lebron-ambassador-9-dam%C3%A4nner-gold-sneakere">billig nike lebron ambassador 9 dam盲nner gold</a> <a href="http://www.instanalo.com/air-jordan-3-retro-nero-uk-games-obuvc">air jordan 3 retro nero uk games</a> <a href="http://www.olafhuth.com/nike-warriors-21-jonas-jerebko-white-nba-swingman-association-edition-jersey-nflw">nike warriors 21 jonas jerebko white nba swingman association edition jersey</a> <a href="http://www.pecanfirewood.com/2014-15-chelsea-fc-26-terry-home-soccer-shirt-kit-nflv">2014 15 chelsea fc 26 terry home soccer shirt kit</a> <a href="http://www.ezzolawaz.com/womens-air-jordan-retro-13-grey-white-skog">womens air jordan retro 13 grey white</a> <a href="http://www.suchmeldungen.com/yellow-silver-womens-nike-air-max-lunar-1-shoes-skob">yellow silver womens nike air max lunar 1 shoes</a>
cloudsmartin http://www.cloudsmartin.com/
faridekhalaf
 faridekhalaf 2019-02-13 04:01回复
#86
<a href="http://www.keleric.com/kvinners-asics-gel-noosa-tri-7-rosa-lilla-obuvk">kvinners asics gel noosa tri 7 rosa lilla</a> <a href="http://www.jeffreya.com/nike-lunar-gato-2-black-shoesi">nike lunar gato 2 black</a> <a href="http://www.vuduchoan.com/adidas-harden-lyser%C3%B8d-hvid-skoj">adidas harden lyser酶d hvid</a> <a href="http://www.gmfamilylaw.com/air-jordan-retro-13-kvinners-gr%C3%B8nn-obuvi">air jordan retro 13 kvinners gr酶nn</a> <a href="http://www.clubephytus.com/air-jordan-retro-6-kvinners-svart-gull-obuvk">air jordan retro 6 kvinners svart gull</a> <a href="http://www.findnewcoupon.com/mennns-nike-air-max-tn-oransje-gr%C3%A5-obuvi">mennns nike air max tn oransje gr氓</a>
faridekhalaf http://www.faridekhalaf.com/
rellthewolf
 rellthewolf 2019-02-11 10:01回复
#85
<a href="http://www.cremontana.com/air-jordan-8-retro-purple-rose-runninge">air jordan 8 retro purple rose</a> <a href="http://www.holeninegolf.com/nike-kvinders-free-og-14-br-l%C3%B8b-sko-brands-schuhea">nike kvinders free og 14 br l酶b sko brands</a> <a href="http://www.boobseze.com/adidas-climacool-ride-scarpe-for-vendita-used-scarpeb">adidas climacool ride scarpe for vendita used</a> <a href="http://www.divyangshop.com/nike-air-max-2019-green-uk-shoeso">nike air max 2019 green uk</a> <a href="http://www.caveduperreux.com/adidas-superstar-rosado-pharrell-williams-kurpesc">adidas superstar rosado pharrell williams</a> <a href="http://www.fabloomsilk.com/nike-hyperdunk-2013-university-blue-zapatost">nike hyperdunk 2013 university blue</a>
rellthewolf http://www.rellthewolf.com/
tentalltales
 tentalltales 2019-02-09 11:27回复
#84
<a href="http://www.paulbmusic.com/lebron-12-herren-schuheg">lebron 12 herren</a> <a href="http://www.trendwaching.com/jordan-8-university-bl%C3%A5-schuheb">jordan 8 university bl氓</a> <a href="http://www.aberturasdh.com/nike-sb-kampai-print-deep-royal-bleu-chaussuresd">nike sb kampai print deep royal bleu</a> <a href="http://www.bobblection.com/air-jordan-4-retro-vert-glow-damskie-butyg">air jordan 4 retro vert glow damskie</a> <a href="http://www.doctormehalo.com/nike-dunk-cmft-premium-tutti-star-scarpea">nike dunk cmft premium tutti star</a> <a href="http://www.ecofunshop.com/nike-flyknit-trainer-schwarz-uk-schuheb">nike flyknit trainer schwarz uk</a>
tentalltales http://www.tentalltales.com/
troudumonde
 troudumonde 2019-02-09 05:24回复
#83
<a href="http://www.jupickuplines.com/air-jordan-retro-30-mint-green-gold-shoesh">air jordan retro 30 mint green gold</a> <a href="http://www.saleuggboot.com/nike-flyknit-racer-oro-azul-zapatosp">nike flyknit racer oro azul</a> <a href="http://www.fragmanizletv.com/nike-air-max-tailwind-8-mujeres-verde-oro-zapatosk">nike air max tailwind 8 mujeres verde oro</a> <a href="http://www.swisshomeas.com/north-face-osito-2-jacket-black-northfaceh">north face osito 2 jacket black</a> <a href="http://www.marinersdiary.com/dam%C3%A4nner-air-jordan-retro-5-schwarz-blau-schuhej">dam盲nner air jordan retro 5 schwarz blau</a> <a href="http://www.bourseasie.com/nike-kobe-9-high-gul-sort-skoh">nike kobe 9 high gul sort</a>
troudumonde http://www.troudumonde.com/
saleuggboot
 saleuggboot 2019-02-09 02:49回复
#82
<a href="http://www.theskifanatic.com/adidas-neo-campus-sky-blue-blue-shoesi">adidas neo campus sky blue blue</a> <a href="http://www.bestoftumblr.com/nike-kd-8-guld-gr%C3%A5-skoj">nike kd 8 guld gr氓</a> <a href="http://www.thehogrider.com/adidas-neo-l%C3%A6r-gr%C3%B8nn-s%C3%B8lv-obuvi">adidas neo l忙r gr酶nn s酶lv</a> <a href="http://www.artpreneure.com/nike-kd-8-kvinners-r%C3%B8d-himmelen-bl%C3%A5-obuvp">nike kd 8 kvinners r酶d himmelen bl氓</a> <a href="http://www.thefarmergirl.com/mennns-asics-asics-gel-kayano-20-s%C3%B8lv-rosa-obuvi">mennns asics asics gel kayano 20 s酶lv rosa</a> <a href="http://www.shetablink.com/air-jordan-retro-12-amarillo-blanco-zapatosp">air jordan retro 12 amarillo blanco</a>
saleuggboot http://www.saleuggboot.com/
lroyroofing
 lroyroofing 2019-02-08 18:11回复
#81
<a href="http://www.daddeaze.com/detroit-lions-jason-hanson-jersey-nflv">detroit lions jason hanson jersey</a> <a href="http://www.debracousins.com/nike-sb-dunk-high-lr-game-royal-skof">nike sb dunk high lr game royal</a> <a href="http://www.yankaripark.com/adidas-superstar-colors-yellow-skob">adidas superstar colors yellow</a> <a href="http://www.yicailottery.com/dallas-cowboys-white-knit-hat-hatd">dallas cowboys white knit hat</a> <a href="http://www.calebcraw.com/nike-free-5-mens-black-trainer-men-runningf">nike free 5 mens black trainer men</a> <a href="http://www.liquidputter.com/nike-hypervenom-phantom-gr%C3%B8n-sort-hvid-schuhea">nike hypervenom phantom gr酶n sort hvid</a>
lroyroofing http://www.lroyroofing.com/
trademaesters
 trademaesters 2019-02-07 11:53回复
#80
<a href="http://www.goseecreate.com/womens-nike-pittsburgh-steelers-53-maurkice-pouncey-elite-green-salute-to-service-nfl-jersey-nflu">womens nike pittsburgh steelers 53 maurkice pouncey elite green salute to service nfl jersey</a> <a href="http://www.lateraline.com/mennns-nike-flynit-air-max-r%C3%B8d-gull-kurpesb">mennns nike flynit air max r酶d gull</a> <a href="http://www.offleaseford.com/nike-dunk-free-scarpe-schuhec">nike dunk free scarpe</a> <a href="http://www.rechargedbody.com/nike-huarache-mujeres-rojo-fox-schuheg">nike huarache mujeres rojo fox</a> <a href="http://www.amyhessatx.com/nike-air-max-thea-ultra-flyknit-baskets-kurpesc">nike air max thea ultra flyknit baskets</a> <a href="http://www.damnshethicc.com/yeezy-boost-350-blanco-jordans-obuvg">yeezy boost 350 blanco jordans</a>
[url=http://www.trademaesters.com/]trademaesters[/url]
顶部留言底部
 00:00/00:00
我想和你虚度时光 - 花房姑娘(9)
  1. 我想和你虚度时光
  2. 花房姑娘
  3. 恋恋风尘
  4. 我喜爱一切不彻底的事物
  5. 我的心里是满的
  6. Long Way
  7. 给少年的歌
  8. 晴日共剪窗
  9. 天上的月你的脸