Original: https://www.cnblogs.com/bigpig369/articles/8785761.html
1. Under the python version 3, use of Qinghua source download (Recommended)
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple you-get
Installation you can use, here recommend some source station (fast download):
# Watercress pip install -i http://pypi.douban.com/simple/ you-get Tsinghua # pip install -i https://pypi.tuna.tsinghua.edu.cn/simple you-get
II. The next step is to use the you-get repository, where a small selection of Tencent video as an example
1. The first parameter is -i, illustrating the role of the video information is parsed at the address
-i-GET https://v.qq.com/x/cover/34rg8ntemeszdm4/j0613bozdsx.html you
# you-GET -i video address
2. The second parameter is -o, the role is to download the video (note to add the saved address)
D you-get -o: / https://v.qq.com/x/cover/34rg8ntemeszdm4/j0613bozdsx.html
# url format Web page that contains the video for you-get -o address to be saved
3. If you want to download a different picture quality, resolved to get out of the video information with the -i parameter
Then choose to download a different format, the specific code is as follows:
you-get --format == mp4hd -o D:/ http://v.youku.com/v_show/id_XMzYzMDI2MjUxMg==.html?spm=a2hww.20027244.m_250036.5~5!2~5~5!2~5~5~A&f=51755641
#格式:you-get --format == container path url
4. The third parameter is -u, parsing the video effect is a real address (url)
you-get -u https://v.qq.com/x/cover/34rg8ntemeszdm4/j0613bozdsx.html
The video format information obtaining json
you-get --json https://v.qq.com/x/cover/34rg8ntemeszdm4/j0613bozdsx.html
6. The method of solving the garbage problem
The CMD input window: chcp 65001 # UTF-8 character set code, default GBK 936
CMD window above the title bar, Properties - font, revised as TrueType 'Lucida Console'
1. Under the python version 3, use of Qinghua source download (Recommended)
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple you-get
Installation you can use, here recommend some source station (fast download):
# Watercress pip install -i http://pypi.douban.com/simple/ you-get Tsinghua # pip install -i https://pypi.tuna.tsinghua.edu.cn/simple you-get
II. The next step is to use the you-get repository, where a small selection of Tencent video as an example
1. The first parameter is -i, illustrating the role of the video information is parsed at the address
-i-GET https://v.qq.com/x/cover/34rg8ntemeszdm4/j0613bozdsx.html you
# you-GET -i video address
2. The second parameter is -o, the role is to download the video (note to add the saved address)
D you-get -o: / https://v.qq.com/x/cover/34rg8ntemeszdm4/j0613bozdsx.html
# url format Web page that contains the video for you-get -o address to be saved
3. If you want to download a different picture quality, resolved to get out of the video information with the -i parameter
Then choose to download a different format, the specific code is as follows:
you-get --format == mp4hd -o D:/ http://v.youku.com/v_show/id_XMzYzMDI2MjUxMg==.html?spm=a2hww.20027244.m_250036.5~5!2~5~5!2~5~5~A&f=51755641
#格式:you-get --format == container path url
4. The third parameter is -u, parsing the video effect is a real address (url)
you-get -u https://v.qq.com/x/cover/34rg8ntemeszdm4/j0613bozdsx.html
The video format information obtaining json
you-get --json https://v.qq.com/x/cover/34rg8ntemeszdm4/j0613bozdsx.html
6. The method of solving the garbage problem
The CMD input window: chcp 65001 # UTF-8 character set code, default GBK 936
CMD window above the title bar, Properties - font, revised as TrueType 'Lucida Console'