-3
我剛剛從http://www.imdb.com/interfaces下載了soundtracks.list文件,我需要幫助將它轉換爲使用C#的csv文件。我讀了關於imdbpy,但我不知道python的一切。(C#)解析imdb'soundtracks.list'到csv
soundtracks.list的結構是這樣的:
# #1 Cheerleader Camp (2010) (V)
- "Drop Dat Booty"
Performed by Ken Cain and Ben Forman
Written and Produced by Ken Cain and Ben Forman
- "Endless View"
Written and Produced by Sterling
Performed by Darlings of the Day
# #2 Chick (2014)
- "Number 1 Chick and Number 2 chick by D Player"
# Star Wars (1977)
- "Star Wars (Main Theme)" (uncredited)
Written by John Williams
Performed by London Symphony Orchestra
- "The Hologram/Binary Sunset" (uncredited)
Written by John Williams
Performed by London Symphony Orchestra
我需要將其轉換成這種格式:
movie,song,info
"#1 Cheerleader Camp (2010) (V)","Drop Dat Booty","Performed by Ken Cain and Ben Forman Written and Produced by Ken Cain and Ben Forman"
"#1 Cheerleader Camp (2010) (V)","Endless View","Written and Produced by Sterling Performed by Darlings of the Day"
"#2 Chick (2014)","Number 1 Chick and Number 2 chick by D Player",""
"Star Wars (1977)","Star Wars (Main Theme) (uncredited)","Written by John Williams Performed by London Symphony Orchestra"
"Star Wars (1977)","The Hologram/Binary Sunset (uncredited)","Written by John Williams Performed by London Symphony Orchestra"
您的具體問題是什麼? 「我需要幫助」通常不會提出一個很好的問題 –
我需要關於如何完成的幫助。 – tucosalamanca
你嘗試過做什麼嗎? – Phate01