Skip to content

Instantly share code, notes, and snippets.

@T-rex2017
Last active May 5, 2023 06:19
Show Gist options
  • Save T-rex2017/d739bb6f51c44b8c7d842b06a593bff6 to your computer and use it in GitHub Desktop.
Save T-rex2017/d739bb6f51c44b8c7d842b06a593bff6 to your computer and use it in GitHub Desktop.
youtube to mp3,m4a,mp4 on android using termux
#single command
pkg install curl && curl https://pastebin.com/raw/stMateZB -o install.sh && dos2unix install.sh && chmod u+x install.sh && ./install.sh
# line by line
pkg install curl
curl https://pastebin.com/raw/stMateZB -o install.sh
dos2unix install.sh
chmod u+x install.sh
./install.sh
@T-rex2017
Copy link
Author

Songs will be downloaded to /sdcard/Music and Videos to /sdcard/Movies

@agentp45
Copy link

Hi been trying your script but the video quality doesn't seem to change when selecting option numbers. any ideas

@T-rex2017
Copy link
Author

Hi been trying your script but the video quality doesn't seem to change when selecting option numbers. any ideas

this uses youtube-dl check it's documentation here

@T-rex2017
Copy link
Author

you could try newpipe if you are on android

@T-rex2017
Copy link
Author

T-rex2017 commented Oct 2, 2020

as termux support python , more easier way is to use pip
pkg install python
pip install -m youtube-dl

@dib1305
Copy link

dib1305 commented Mar 11, 2022

How to uninstall it?

@T-rex2017
Copy link
Author

How to uninstall it?

pkg install curl && curl https://pastebin.com/raw/stMateZB -o install.sh && dos2unix install.sh && chmod u+x install.sh && ./install.sh

Paste this code to your termux and press enter

@dib1305
Copy link

dib1305 commented Mar 11, 2022

Uninstall

@dib1305
Copy link

dib1305 commented Mar 11, 2022

How to remove that pkg?

@T-rex2017
Copy link
Author

T-rex2017 commented Mar 11, 2022

How to remove that pkg?

This install's python , ffmpeg , youtube-dl and a script termux-url-opener

If you wish you could remove them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment