python script to record online live streaming videos

后端 未结 3 1002
生来不讨喜
生来不讨喜 2021-02-01 10:56

i am developing a script to download online live streaming videos.

My Script:

print \"Recording video...\"
response = urllib2.urlopen(\"streaming onlin         


        
3条回答
  •  说谎
    说谎 (楼主)
    2021-02-01 11:06

    You can use the 'Content-Length' header to retrieve the video filesize if it exists.

    video_file_size_end = response.info().getheader('Content-Length')
    

提交回复
热议问题