you-get 使用出错 [error] oops, something went wrong.
使用you-get下载时出现此错误提示:
C:\Users\simple>you-get https://www……【URL】
you-get: [error] oops, something went wrong.
you-get: don't panic, c'est la vie. please try the following steps:
you-get: (1) Rule out any network problem.
you-get: (2) Make sure you-get is up-to-date.
you-get: (3) Check if the issue is already known, on
you-get: https://github.com/soimort/you-get/wiki/Known-Bugs
you-get: https://github.com/soimort/you-get/issues
you-get: (4) Run the command with '--debug' option,
you-get: and report this issue with the full output.
'vd_source' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
错误提示中让我们使用命令'--debug'运行
尝试:
C:\Users\simple>you-get --debug https://www.……
[DEBUG] get_content: https://www.……
[DEBUG] get_content: https://www.……
[DEBUG] get_content: https://interface.……
[DEBUG] HTTP Error with code403
[DEBUG] HTTP Error with code403
[DEBUG] HTTP Error with code403
you-get: version 0.4.1650, a tiny downloader that scrapes the web.
you-get: Namespace(version=False, help=False, info=False, url=False, json=False, no_merge=False, no_caption=False, postfix=False, force=False, skip_existing_file_size_check=False, format=None, output_filename=None, output_dir='.', player=None, cookies=None, timeout=600, debug=True, input_file=None, password=None, playlist=False, first=None, last=None, size=None, auto_rename=False, insecure=False, http_proxy=None, extractor_proxy=None, no_proxy=False, socks_proxy=None, stream=None, itag=None, m3u8=False, URL=['https://www.……'])
Traceback (most recent call last):
也出现了很多错误
怀疑版本旧了,因为好久没用了,更新:
命令:pip3 install --upgrade you-get
Uninstalling you-get-0.4.1650:
Successfully uninstalled you-get-0.4.1650
Successfully installed dukpy-0.4.0 mutf8-1.0.6 you-get-0.4.1730
成功安装
再次尝试下载:
C:\Users\simple>you-get https://www……
you-get: You will need login cookies for 720p formats or above. (use --cookies to load cookies.txt.)
site: ……
title: ……
stream:
- format: dash-flv480-AVC
container: mp4
quality: 清晰 480P avc1.640033
size: 30.3 MiB (31725753 bytes)
# download-with: you-get --format=dash-flv480-AVC [URL]
Downloading …….mp4 ...
100% ( 30.3/ 30.3MB) ├████████████████████████████████████████┤[2/2] 7 MB/s
成功下载
需要注意的是,更新you-get时最后有两个提示:
[notice] A new release of pip is available: 23.3.2 -> 24.2
[notice] To update, run: python.exe -m pip install --upgrade pip
告诉我有新的pip版本,更新吧