用 playlist(xml) 快速下載更名工具

本文內容已被 [ Clown123 ] 在 2012-03-07 18:44:02 編輯過。如有問題,請報告版主或論壇管理刪除.

這個帖子裏問了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"

所有跟帖: 

請您先登陸,再發跟帖!