Skip to content

haiueom/termux-url-opener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

termux-url-opener

Simple script for download video and audio using termux.

Features:

  • download using yt-dlp
  • download using curl
  • download using wget

How to Install

Run this in your termux app.

pkg update -y && pkg upgrade -y
pkg install curl -y && curl https://raw.githubusercontent.com/haiueom/termux-url-opener/main/setup.sh | bash

Then you must run this to setup storage termux.

termux-setup-storage

Then make yt-dlp configuration file to set default output directory or you can make your own configuration.

mkdir -p $HOME/.config/yt-dlp
echo "--no-mtime" > $HOME/.config/yt-dlp/config
echo "-o $HOME/storage/shared/Download/termux/%(title)s.%(ext)s" >> $HOME/.config/yt-dlp/config

Then you can use the script by share a link to termux.

How to Update

if you want to update the script, just run this in your termux app.

curl https://raw.githubusercontent.com/haiueom/termux-url-opener/main/update.sh | bash

How to Use Cookies

If you want to use cookies, you should copy cookies as Netscape HTTP format and put your cookies in $HOME/storage/shared/Download/termux/cookies.

You can use this Chrome extension to export cookies as Netscape HTTP format:

example: $HOME/storage/shared/Download/termux/instagram.txt

# Netscape HTTP Cookie File
# http://curl.haxx.se/rfc/cookie_spec.html
# This is a generated file!  Do not edit.

.example.com	TRUE	/	TRUE	1234567890	cookie_name	cookie_value
.example.com	TRUE	/	TRUE	1234567890	another_cookie	another_value

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Languages