To use this script,
- Download termux APK from F-Droid since play store version is deprecated.
- Open termux, and paste the following command
curl -L https://bit.ly/tmxytdl | bash -`
- The app will ask for storage access, allow it by tapping on 'Yes'.
- Restart termux after installation.
- Tap on share for the video that you wanted to download, and choose termux, download will start automatically. (for this method to work, you might need to give "Draw over other apps" permission to termux.)
- OR Just use yt -h and explore the cli to get more sophisticated options.