爬取豆瓣音乐人页面歌曲

[代码] 获取豆瓣音乐人主页歌曲列表json片段 songs = (List) CM.get("CACHE_FM", "CACHE_FM_KEY_"   uid);
if (songs != null)
    return JSON.toJSONString(songs);
u_index = MyHttpClient.doGet(String.format(douban_ui http://www.fpfuzhou.com/linked/20130216.do; ndex, uid));
if (u_index == null)
    return "";
jshtml = MyJsoup.getInnerHtmlByTag(u_index, "script");
songs = songlist(jshtml, uid);
if (songs != null) {
    CM.set("CACHE_FM", "CACHE_FM_KEY_"   uid, (Serializable) songs);
    return JSON.toJSONString(songs);
} else {
  return null;
} http://www.fpfuzhou.com/linked/20130216.do; 
posted @ 2013-02-17 02:30  chinadiy197601  阅读(211)  评论(0编辑  收藏  举报