Created
May 14, 2019 15:55
-
-
Save mungi/787e41bfe8b96b20e59ee16df75af760 to your computer and use it in GitHub Desktop.
download some series using rtmpdump
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 subprocess | |
def down_flv(): | |
for i in range(1, 17): | |
for j in range(2, 7): | |
filename = "{:02d}_{:02d}".format(i, j) | |
url = "rtmpdump -i rtmp://rtmp.domain.com:9080/LMS-APP/INST01/service/1005922/FLV/{} -o {}.flv".format(filename, filename) | |
print(url) | |
subprocess.call(url, shell=True) | |
print("Done {}".format(filename)) | |
if __name__ == "__main__": | |
down_flv() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment