Created
February 23, 2012 13:44
-
-
Save lopuhin/1892888 to your computer and use it in GitHub Desktop.
Script to put youtube-downloaded videos for unit-1 of cs373 in correct order
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Uqt_pRbR8rI.mp4 | |
31xZhj2uPr4.mp4 | |
n1EacrqyCs8.mp4 | |
6tV5NY1HoNA.mp4 | |
IZC33Tmy8Lo.mp4 | |
ysebYA6tDZ4.mp4 | |
_sAkAALHyEg.mp4 | |
e21oU80gwWc.mp4 | |
nsSvTTA0p8E.mp4 | |
UFcTLCttNRI.mp4 | |
dEiQObhi2J4.mp4 | |
qa9B4r5m8wM.mp4 | |
WgX17_mmc1c.mp4 | |
Uc_rHR6U70U.mp4 | |
SW_wvez0izo.mp4 | |
wOfAyDvun5w.mp4 | |
FnhHQht4vDo.mp4 | |
z0oijOqN8K8.mp4 | |
6c0XvswnGm0.mp4 | |
eIjyrQpDogg.mp4 | |
Y5iFxWRTw1c.mp4 | |
GqWszyHTYas.mp4 | |
UX3W8TUKbJ0.mp4 | |
Lf2DYUCsUH4.mp4 | |
F8AHaaJVmkw.mp4 | |
gDO4sF8gR9k.mp4 | |
-3qTapGGa-8.mp4 | |
1mL6CtD3rAM.mp4 | |
Iky7rJXQU_4.mp4 | |
wfjE0mVADIk.mp4 | |
TnFq6hufsYs.mp4 | |
C3f-T9_GTpw.mp4 | |
mGWGhgZG_jM.mp4 | |
gZbPZLFKS68.mp4 | |
jR7FERpsqe4.mp4 | |
BldUOLB2U1Y.mp4 | |
7T1Rr7KLgdM.mp4 | |
68Kao9dkIKA.mp4 | |
QCnPJcNprEU.mp4 | |
kfPWiMsnWFI.mp4 | |
SXSafquSoW8.mp4 | |
sKiumVTdpgY.mp4 | |
oqlgQa1IdcY.mp4 | |
x2o1g3J-1nw.mp4 | |
nYt9b_pNvEE.mp4 | |
K8g3Hss8Q1A.mp4 | |
1s2dRczcu1A.mp4 | |
-wT7h9Gdm_8.mp4 | |
rmWL_3r8MKo.mp4 | |
MVbo4OAgQCc.mp4 | |
-F2gJXWbN6s.mp4 | |
OQ2JS2wQzrs.mp4 | |
PE-k3PGXeLY.mp4 | |
uw51WQDqXAI.mp4 | |
oDPbdGXH5nE.mp4 | |
TF6AWXSlOcY.mp4 | |
sA5wv56qYc0.mp4 | |
SZ6Jg1wS604.mp4 | |
9I-v2Amzwmw.mp4 | |
byZ-BzbQA5M.mp4 | |
hzDsYZ61D5M.mp4 | |
ASUXN9Ay35M.mp4 | |
2PZHPjyYnMg.mp4 | |
_AhoOd8YUK0.mp4 | |
lN-jNSf_CCw.mp4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
filenames = open('download.filenames.log').read().split() | |
for i, fname in enumerate(filenames): | |
os.rename(fname, str(i).zfill(3) + '_' + fname) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment