Clown1232012-03-08 02:35:25

这个帖子里问了xml的问题,

http://bbs.wenxuecity.com/music/636987.html

这里提供一个用 Python 写的工具可以根据xml 批量下载并改名.

http://115.com/file/dpzz10u8

1. 这个工具提供利用 xml 档案批次下载改名的方便办法。 从上面115网盘下载pl.zip 并解开。确定 pl.exe 在执行路径内。
 
2. 在文学城音乐快递网页里找到 View->Page Source  (Firefox) 找到这个:
 
   flashvars="&config=http://space.wenxuecity.com/media/1288919854.xml&file=http://space.wenxuecity.com/media/1289255601.xml" quality="high" menu="false" />
 
file ....  http://space.wenxuecity.com/media/1289255601.xml 就是我们要找的源头,内容长得像这样
Sample PHP Generated Playlist
[pre]


<playlist version="1">
<title>Sample PHP Generated Playlist</title>
<info>http://www.jeroenwijering.com/</info>

<trackList>

<track>
<location>http://space.wenxuecity.com/media/1288838301.mp3</location>
<annotation> 01. I Remember Spring </annotation>
<info>blank</info>
</track>

<track>
<location>http://space.wenxuecity.com/media/1288838336.mp3</location>
<annotation> 02. A Walk Between the Raindrops </annotation>
<info>blank</info>
</track>
[/pre]
 
3. 把 http://space.wenxuecity.com/media/1289255601.xml 剪贴到 Flashget 然后存起来
 
4. 跑 pl.exe 列出所有档,并生成一个批次档 rpl.bat
 
D:\Downloads\Music\RobinSpielberg>\py\playlist\pl\pl.exe -s "RobinSpelberg" 1289
255601.xml
http://space.wenxuecity.com/media/1288838301.mp3
http://space.wenxuecity.com/media/1288838336.mp3
http://space.wenxuecity.com/media/1288838466.mp3
http://space.wenxuecity.com/media/1288919472.mp3
http://space.wenxuecity.com/media/1288838522.mp3
http://space.wenxuecity.com/media/1288839116.mp3
http://space.wenxuecity.com/media/1288919442.mp3
http://space.wenxuecity.com/media/1288838686.mp3
http://space.wenxuecity.com/media/1288838828.mp3
http://space.wenxuecity.com/media/1288838911.mp3
http://space.wenxuecity.com/media/1288838565.mp3
http://space.wenxuecity.com/media/1288838733.mp3
http://space.wenxuecity.com/media/1288919506.mp3
 
6. 将这些mp3档剪贴到 Flashget 内批次下载。
 
7. 最后执行 rpl.bat 把档名改掉
 
D:\Downloads\Music\RobinSpielberg>rpl.bat
ren 1288838301.mp3 "RobinSpelberg 01. I Remember Spring.mp3"
ren 1288838336.mp3 "RobinSpelberg 02. A Walk Between the Raindrops.mp3"
ren 1288838466.mp3 "RobinSpelberg 03. Until You Come Home.mp3"
ren 1288919472.mp3 "RobinSpelberg 04. I Dream of You.mp3"
ren 1288838522.mp3 "RobinSpelberg 05. The Orange Fox Waits.mp3"
ren 1288839116.mp3 "RobinSpelberg 06. Seeing You Seeing Me.mp3"
ren 1288919442.mp3 "RobinSpelberg 07. Winter Sonata.mp3"
ren 1288838686.mp3 "RobinSpelberg 08. My Memory.mp3"
ren 1288838828.mp3 "RobinSpelberg 09. A New Kind of Love.mp3"
ren 1288838911.mp3 "RobinSpelberg 10. Starlight.mp3"
ren 1288838565.mp3 "RobinSpelberg 11. This Busy Life.mp3"
ren 1288838733.mp3 "RobinSpelberg 12. Picking Flowers.mp3"
ren 1288919506.mp3 "RobinSpelberg 13. Eileen.mp3"

yy8882012-03-08 03:12:38
谢谢热心的Clown123,此帖收入论坛帮助“热心网友。。。”一贴!
jydgghll2012-03-08 03:19:46
哥们,我正在找这个东东,能不能一次运行,一间搞定的东东?谢谢
yy8882012-03-08 03:31:18
Clown123人热心,技术高超,也许TA能回答你的问题,再次深深谢过clown123!
Clown1232012-03-08 05:35:57
回复:哥们,我正在找这个东东,能不能一次运行,一间搞定的东东?谢谢
perldev2012-03-09 13:11:05
回复:用 playlist(xml) 快速下载更名工具
perldev2012-03-09 13:15:24
回复:回复:用 playlist(xml) 快速下载更名工具