网上关于百度音乐搜索的文章不少。但关于雅虎音乐搜索的文章搜了半天也没有。为此特发帖求解:
1、如何获得雅虎音乐的歌曲列表(全部列表),不随雅虎音乐网站的改版而变化?
2、如何搜索并下载雅虎音乐?搜索并下载雅虎音乐歌词?
3、关于雅虎音乐搜索的程序应如何设计、如何实现?
4、能否献上你的代码?非常感谢小弟初次发帖,请各位老大多多包涵,多多指教,多多扶助。特别感谢大师级人物帮忙,有劳各位了

解决方案 »

  1.   

    这个好像网上有相关的软件,不知道是不是delphi编的。
      

  2.   

    用正则表达式来解释雅虎搜索引擎的参数,部分参数可参考如下:
    url=http://music.yahoo.com.cn/search.html?pid=ysearch&p=%s&mimetype=all&source=ysearch_music_result_topsearch
    url_singer=http://music.yahoo.com.cn/search.html?pid=ysearch&p=%s&mimetype=all&source=ysearch_music_result_singer
    url_album=http://music.yahoo.com.cn/search.html?pid=ysearch&p=%s&mimetype=all&source=ysearch_music_result_album
    regexp=title="[^a-z]*(http://[^"]+) [^a-z0-9]*">(.+)</a>.+<td[^>]*>(.*)</td>[^<>]*<td[^>]*>(.*)</td>[^<>]*<td[^>]*>.*</td>[^<>]*<td[^>]*>.*</td>[^<>]*<td[^>]*>.*</td>[^<>]*<td[^>]*>.*</td>[^<>]*<td class="size"[^>]*>([^<>]+)</td>[^<>]*<td class="size"[^>]*>([0-9\.]+[A-Z])</td>.+<tr height="6">(.+)</tr>
    spot_cnt=8
    x_addr=1
    x_name=2
    x_singer=3
    x_album=4
    x_ext=5
    x_size=6
    x_speed=7
    param1=#618DCC[Parser2]
    regexp=<a href="?(http://music\.yahoo\.com\.cn/search[^" ]+)"? ?[^ <>]*>([^<>]+)</a></td>[^<>]*<td><a href="?[^"]+"?[^<>]*>([^<>]+)</a>
    x_song=2
    x_singer=3
    x_page=1[Parser3]
    regexp=<a href="?(http://music\.yahoo\.com\.cn/search[^" ]+)"? ?[^ <>]*>([^<>]+)</a>
    x_song=2
    x_singer=-1
    x_page=1[Parser4]
    regexp=<a href="?(http://music\.yahoo\.com\.cn/search[^" ]+)"? ?[^ <>]*>([^<>]+)</a>\s*<font class="z_gray0 eng">&lt;(.+)&gt;
    x_song=2
    x_singer=3
    x_page=1; 排行榜
    [BaiduSpot0]
    title=歌曲TOP500
    url=http://list.mp3.baidu.com/topso/mp3topsong.html
    parser=0[BaiduSpot1]
    title=新歌TOP100
    url=http://list.mp3.baidu.com/list/newhits.html
    parser=0[BaiduSpot2]
    title=校园歌曲
    url=http://list.mp3.baidu.com/xiaoyuan/mp3topsong.html
    parser=1[BaiduSpot3]
    title=民歌精选
    url=http://list.mp3.baidu.com/minge/mp3topsong.html
    parser=1[BaiduSpot4]
    title=经典老歌
    url=http://list.mp3.baidu.com/list/oldsong.html
    parser=0[BaiduSpot5]
    title=电影金曲
    url=http://list.mp3.baidu.com/list/movies.html
    parser=0