Download videos with Python + you-get

发布:2026-07-24 作者:飞凡星网 阅读:1719 次

1. Download and install Python

\n\n

https://www.yuque.com/guoke-hubr2/auto/kdioew?singleDoc# Python for Beginners

\n\n

Install the latest version of Python at https://www.python.org/downloads/

\n\n

2. Enter CMD

\n\n

Press Win + R to enter the CMD state

\n\n

III. Install you-get

\n\n

https://www.bilibili.com/read/cv23402559/

\n\n

1.In cmd, use the command [pip install you-get -i https://pypi.tuna.tsinghua.edu.cn/simple] to install you-get

\n\n

2. in cmd, use the command [you-get -l video address] to download all videos

\n\n

Upgrade the pip library, enter python.exe -m pip install --upgrade pip, enter key

\n\n

Upgrade the you-get library, enter pip install --upgrade you-get, enter

\n\n

Install FFMPEG?

\n\n

Website:https://ffmpeg.org/download.html

\n\n


\n\n


\n\n

IV. Downloading Videos

\n\n

In the CMD state, enter:

\n\n

you-get -l -o g:\\abc http://www.XXXXXXXXXXXXXXXX (-l: refers to the entire series of videos, not a single file; -o: is the directory where the specified download file is stored)

\n\n


\n\n

pycharm Related Information Reference Page:

\n\n

https://www.bilibili.com/read/cv28333432/

\n\n


\n\n

Note: Download the following file and copy it to the following location folder to replace it: D:\\ Program Files (x86)\\ Python310\\ Lib\\ site-packages\\ you_get\\ extractors (see specific installation path, unclear, enter in CMD state: where python view)

\n\n

zip.svgbilibili.zip

\n\n