下载哔哩哔哩视频
import sys from you_get import common as you_get #导入you-get库 directory = r'D:\1' #设置下载目录 url = 'https://www.bilibili.com/video/BV17J41177ro?from=search&seid=4647397018203273186' #需要下载的视频地址 sys.argv = ['you-get','-o',directory,url] #sys传递参数执行下载,就像在命令行一样 you_get.main()
撸起袖子加油干!!!