File tree 1 file changed +21
-2
lines changed
1 file changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -899,14 +899,33 @@ Install pyinstaller:
899
899
brew install pyinstaller
900
900
```
901
901
902
- Clone and build the youtube-dl:
902
+ Clone and build the [ youtube-dl] ( https://github.com/ytdl-org/youtube-dl ) :
903
903
904
904
``` bash
905
- cd ~ /git && git clone git@ github.com: ytdl-org/youtube-dl.git &&
905
+ cd ~ /git && git clone https:// github.com/ ytdl-org/youtube-dl.git &&
906
906
cd ~ /git/youtube-dl && pyinstaller --onefile --clean --noconfirm --name youtube-dl youtube_dl/__main__.py &&
907
907
ln -sf ~ /git/youtube-dl/dist/youtube-dl /opt/homebrew/bin/
908
908
```
909
909
910
+ For linux server, to download the latest youtube-dl:
911
+
912
+ ``` bash
913
+ curl -L -o /usr/local/bin/youtube-dl ' https://github.com/ytdl-org/ytdl-nightly/releases/latest/download/youtube-dl' &&
914
+ rm -f /usr/bin/python && ln -sf /usr/bin/python3 /usr/bin/python &&
915
+ chmod +x /usr/local/bin/youtube-dl
916
+ ```
917
+
918
+ An alternative project is [ yt-dlp] ( https://github.com/yt-dlp/yt-dlp ) which is a fork of youtube-dl:
919
+
920
+ ``` bash
921
+ cd ~ /git && git clone https://github.com/yt-dlp/yt-dlp.git &&
922
+ cd ~ /git/yt-dlp && python3 -m venv venv && source venv/bin/activate &&
923
+ python3 devscripts/install_deps.py --include pyinstaller &&
924
+ python3 devscripts/make_lazy_extractors.py
925
+ python3 -m bundle.pyinstaller --onefile --clean --noconfirm --name youtube-dl yt_dlp/__main__.py &&
926
+ ln -sf ~ /git/yt-dlp/dist/youtube-dl /opt/homebrew/bin/
927
+ ```
928
+
910
929
Use socks5 proxy for macOS to download:
911
930
912
931
``` bash
You can’t perform that action at this time.
0 commit comments