you-get
you-get copied to clipboard
Extremely slow download (~50KB/s) from YouTube
Seemingly this is due to a new restriction imposed by YouTube. See https://github.com/ytdl-org/youtube-dl/issues/30102
The tool yt-dlp
has a workaround for this.
Hello @Iey4iej3, Thanks for the Pull Request. We :heart: our contributors! Please wait for one of our human maintainers to review your patches. This may take a few days to weeks. Also, please understand that although your Pull Request may or may not be eventually merged, we value all contributions equally.
祝您健康!
Encountered the same issue here. Thanks @ley4iej3 for the pointer. Here's a quick patch using aria2
(can install via brew) for my own use: https://github.com/hupili/you-get/commit/a0bb83563d0a7200efc394bd8ae1673eadf09778
Looking forward to a more formal upgrade.
updated a bit to support single URL: https://github.com/hupili/you-get/tree/aria
it works at about 700KB/s at my side, with max concurrency=16 per aria limit.
A quick turn-key solution for future visitors:
brew install aria2
pip install git+https://github.com/hupili/you-get.git@aria
Battle tested.
Besides the slow speed, downloading from YouTube tends to fail, and apparently not a network problem. Any updates?
A quick turn-key solution for future visitors:
brew install aria2 pip install git+https://github.com/hupili/you-get.git@aria
Battle tested.
When I installed aria2 from aria2/aria2 and runned pip install git+https://github.com/hupili/you-get.git@aria
successfully and wants to download an YouTube video, there are something wrong:
Download Results:
gid |stat|avg speed |path/URI
======+====+===========+=======================================================
d99398|ERR | n/a|D:/Videos/'./Rem[00].webm'
Status Legend:
(ERR):error occurred.
aria2 will resume download if the transfer is restarted.
If there are any errors, then see the log file. See '-l' option in help/man page for details.
seems the file name is ill formed. can you share the link you are trying to download l?
seems the file name is ill formed. can you share the link you are trying to download l?
Yes the filename contains Chinese characters, such as this: https://www.youtube.com/watch?v=lWSXOcb4YrM
.
That video path with Chinese works fine on Mac.
Maybe you can try to modify 1041 and 1056 in src/you_get/common.py
, i.e. output_filename
and output_filename_i
to sanitise the path, or hard code one that works for your system.
Some upgrade ? i start youtube download at 70 MB/s after 1 seconds drop to 50 Kb/s
Dear all,
Since I am a new comer for this great community, forgive me if I fail to follow some rule in it.
I am using Bitznet VPN and download some video clips from YouTube. And yesterday Bitznet was collaspe due to some Heckers' attack. The download of videos went well before this collapse, but today, when Bitznet restored, the downloading come to be with some problem. Does it mean I am blocked by YouTube? Here is the tips from you-get:
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.
C:\Users\Lenovo>you-get --debug https://www.youtube.com/watch?v=CBV5z_eaa8E [DEBUG] get_content: https://www.youtube.com/watch?v=CBV5z_eaa8E you-get: version 0.4.1650, a tiny downloader that scrapes the web. you-get: Namespace(URL=['https://www.youtube.com/watch?v=CBV5z_eaa8E'], auto_re ame=False, cookies=None, debug=True, extractor_proxy=None, first=None, force=Fa se, format=None, help=False, http_proxy=None, info=False, input_file=None, inse ure=False, itag=None, json=False, last=None, m3u8=False, no_caption=False, no_m rge=False, no_proxy=False, output_dir='.', output_filename=None, password=None, player=None, playlist=False, postfix=False, size=None, skip_existing_file_size_ heck=False, socks_proxy=None, stream=None, timeout=600, url=False, version=Fals ) Traceback (most recent call last): File "c:\users\lenovo\appdata\local\programs\python\python38\lib\urllib\reque t.py", line 1354, in do_open h.request(req.get_method(), req.selector, req.data, headers, File "c:\users\lenovo\appdata\local\programs\python\python38\lib\http\client. y", line 1252, in request self._send_request(method, url, body, headers, encode_chunked) File "c:\users\lenovo\appdata\local\programs\python\python38\lib\http\client. y", line 1298, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "c:\users\lenovo\appdata\local\programs\python\python38\lib\http\client. y", line 1247, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "c:\users\lenovo\appdata\local\programs\python\python38\lib\http\client. y", line 1007, in _send_output self.send(msg) File "c:\users\lenovo\appdata\local\programs\python\python38\lib\http\client. y", line 947, in send self.connect() File "c:\users\lenovo\appdata\local\programs\python\python38\lib\http\client. y", line 1421, in connect self.sock = self._context.wrap_socket(self.sock, File "c:\users\lenovo\appdata\local\programs\python\python38\lib\ssl.py", lin 500, in wrap_socket return self.sslsocket_class._create( File "c:\users\lenovo\appdata\local\programs\python\python38\lib\ssl.py", lin 1040, in _create self.do_handshake() File "c:\users\lenovo\appdata\local\programs\python\python38\lib\ssl.py", lin 1309, in do_handshake self._sslobj.do_handshake() ConnectionResetError: [WinError 10054] 远程主机强迫关闭了一个现有的连接。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\lenovo\appdata\local\programs\python\python38\lib\runpy.py", l
ne 194, in _run_module_as_main
return run_code(code, main_globals, None,
File "c:\users\lenovo\appdata\local\programs\python\python38\lib\runpy.py", l
ne 87, in run_code
exec(code, run_globals)
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python38\Scripts\you-get.
xe_main.py", line 7, in
@RestYourHeadHere If it is an issue irrelevant to this issue, please open a new one — people subscribing to this issue might not want to be disturbed by another issue.
@Iey4iej3 Watch your words, guy. We can say it is asscociated to the topic generally, but the problem has been solved. Anyway, I will leave this place of your own fun alone.
Dear author @soimort, Thank your for your brilliant work, since people run into problems but find no proper place to go, why not set up the GitHub Discussion for general issues?
since people run into problems but find no proper place to go, why not set up the GitHub Discussion for general issues?
In the README, it reads that
You can reach us on the Gitter channel #soimort/you-get (here's how you set up your IRC client for Gitter). If you have a quick question regarding you-get, ask it there.
I guess that it would be better to say that at the beginning of README.
为未来访客提供快速交钥匙解决方案:
brew install aria2 pip install git+https://github.com/hupili/you-get.git@aria
经过战斗考验。
我没有成功,我该怎么做呢? Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting git+https://github.com/hupili/you-get.git@aria Cloning https://github.com/hupili/you-get.git (to revision aria) to c:\users\oon\appdata\local\temp\pip-req-build-2ky_yp8o Running command git clone --filter=blob:none --quiet https://github.com/hupili/you-get.git 'C:\Users\oon\AppData\Local\Temp\pip-req-build-2ky_yp8o' fatal: unable to access 'https://github.com/hupili/you-get.git/': Failed to connect to 127.0.0.1 port 7890 after 2022 ms: Couldn't connect to server error: subprocess-exited-with-error
× git clone --filter=blob:none --quiet https://github.com/hupili/you-get.git 'C:\Users\oon\AppData\Local\Temp\pip-req-build-2ky_yp8o' did not run successfully. │ exit code: 128 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error
× git clone --filter=blob:none --quiet https://github.com/hupili/you-get.git 'C:\Users\oon\AppData\Local\Temp\pip-req-build-2ky_yp8o' did not run successfully. │ exit code: 128 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
@zhl111 Failed to connect to 127.0.0.1 port 7890 after 2022 ms: Couldn't connect to server
looks like your proxy problem.
But you can check out https://github.com/yt-dlp/yt-dlp which has a decent speed for Youtube and supports aria2 as well.
非常感谢上面两位的帮助。我还是选择了yt-dlp,比you-get好用
Hi, it happens again now. 403 on youtube
[DEBUG] HTTP Error with code403 [DEBUG] HTTP Error with code403 you-get: version 0.4.1718, a tiny downloader that scrapes the web.