To download media from YT and TT run this lines of code in Termux, then share an url with Termux.
# Update
pkg update
pkg upgrade
# Permissions
termux-setup-storage
# Packages (use apt in case pkg is not working)
pkg install git -y
pkg install python -y
pkg install wget -y
pkg install ffmpeg -y
# Python modules
pip install requests
pip install youtube-dl # python3 -m pip install --force-reinstall https://github.com/yt-dlp/yt-dlp/archive/master.tar.gz
pip install beautifulsoup4
# pip install json
# Bin directory
mkdir -p $HOME/bin
# Url Opener + YouTube Downloader
wget https://raw.githubusercontent.com/zehr0s/mobile-setup/main/termux-url-opener -O $HOME/bin/termux-url-opener
chmod +x $HOME/bin/termux-url-opener
# TikTok Downloader
wget https://raw.githubusercontent.com/zehr0s/spiders/main/handmade/tiktok/tiktok_dl.py -O /data/data/com.termux/files/usr/bin/tiktok-dl
sed -i '1c\#! /data/data/com.termux/files/usr/bin/python3' /data/data/com.termux/files/usr/bin/tiktok-dl
chmod +x /data/data/com.termux/files/usr/bin/tiktok-dl
# Spiders [External Storage]
# git clone https://github.com/zehr0s/spiders $HOME/storage/external-1/scripts/spiders
Set Firefox to Desktop Mode permanently.
- Toggle Desktop Mode.
- Search your User Agent.
- Copy User Agent e.g: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0
- Type about:config in the address bar.
- Create a new entry.
- Type: string
- Name: general.useragent.override
- Value: your user agent.
- Restart browser.