喜欢看王小峰的博客,也喜欢听他博客上的歌,看到他博客上介绍这个可以下载他的歌曲就转了过来,原文不贴了
贴脚本
#!/usr/bin/python
# Download all the music recommended by wangxiaofeng.net
# Author: Eric You XU
# GPLv2
import os
import commands
os.popen("wget www.wangxiaofeng.net/mp3player.xml -O mp3player.xml")
str="""cat mp3player.xml|egrep -o path=[^3]+mp3|tr "\"" "\n"|grep http >wangxiaofeng.list"""
print str
os.popen(str)
f=open("wangxiaofeng.list")
for g in f.read().split('n'):
print g
a="wget ""+g+"""
os.popen(a)