Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/data/data/com.termux/files/usr/bin/bash
- export XDG_RUNTIME_DIR='/data/data/com.termux/files/usr/tmp/runtime-u0_a547'
- export RUNLEVEL=3
- echo "File download movie video code 18 file press 00"
- echo "For Audio playlist items in folder press 111"
- echo "File download best video file press 0"
- echo "File download best short video file press 99"
- echo "For instagram photos rang download press 1"
- echo "For single Audio file in JukeBox press 2"
- echo "File download video files in Folder press 3"
- echo "For Audio playlist items in folder press 4"
- echo "File download using Wget press 5"
- echo "File download using Aria2c press 6"
- echo "For Audio cut using ffmpeg press 7"
- echo "for item files in folder for playlist press 8"
- echo "For Download instagram photos press 9"
- echo "For Download instagram photo item press 10"
- echo "For Download Dristi IAS Day News pdf press 11"
- echo "For Download spotify songs press 12"
- echo "For Download spotify Album press 13"
- echo "For gdrivedl download g file press 14"
- echo "For url mp3 file download using arial press 15"
- echo "For AIR mp3 file download using arial press 16"
- echo "For gdrivedl download g file press 17"
- echo "For .pdf file download using arial press 18"
- echo "For all pdf files in a url download using arial press 19"
- echo "For Audio playlist of channel in folder press 20"
- echo "download using THAu&Fino press 21"
- echo "Download .m4a file in Dristi Topics press 22"
- echo "download using THAu press 23"
- command="--embed-thumbnail --no-part --no-warnings --no-mtime -o '/data/data/com.termux/files/home/storage/shared/JukeBox/%(title)s -- %(uploader)s.%(ext)s' -i --external-downloader aria2c --external-downloader-args '-c -x 16 -s 16 -k 1M --file-allocation=none'"
- dfol="--embed-thumbnail --no-part --no-warnings --no-mtime -o '/data/data/com.termux/files/home/storage/shared/StudyMaterials/DristiIASm4a/%(title)s.%(ext)s' -i"
- command1="--embed-thumbnail --no-part --no-warnings --no-mtime -o '/data/data/com.termux/files/home/storage/shared/JukeBox/%(title)s -- %(uploader)s.%(ext)s' -i"
- folder="--embed-thumbnail --no-part --no-warnings --no-mtime -o '/data/data/com.termux/files/home/storage/shared/JukeBox/%(playlist)s/%(title)s -- %(uploader)s.%(ext)s' -i --external-downloader aria2c --external-downloader-args '-c -x 16 -s 16 -k 1M --file-allocation=none'"
- dloader="--external-downloader aria2c --external-downloader-args '-c -x 16 -s 16 -k 1M --file-allocation=none'"
- Grange="--dest ~/storage/shared/Gallery --range"
- Gl="--dest ~/storage/shared/Gallery"
- read option
- if [ "$option" -eq "00" ]
- then
- echo "$command -f 18" > ~/.config/youtube-dl/config
- youtube-dl $1
- elif [ "$option" -eq "111" ]
- then
- echo -e "Enter Playlist items You want \n"
- read items
- echo "$folder -f 140 --playlist-items $items" > ~/.config/youtube-dl/config
- youtube-dl $1
- elif [ "$option" -eq "0" ]
- then
- echo "$command -f best" > ~/.config/youtube-dl/config
- youtube-dl $1
- elif [ "$option" -eq "99" ]
- then
- echo $1 | sed 's,shorts/,watch?v=,g' | sed 's,?feature=share,,g'
- youtube-dl $(echo $1 | sed 's,shorts/,watch?v=,g' | sed 's,?feature=share,,g')
- elif [ "$option" -eq "1" ]
- then
- echo -e "Enter range u want just wait"
- gallery-dl -d ~/storage/shared/Gallery $1 | sed 's,/?utm/_medium/=copy/_link,,g'
- elif [ "$option" -eq "2" ]
- then
- echo "$command -f 140 " > ~/.config/youtube-dl/config
- youtube-dl $1
- elif [ "$option" -eq "3" ]
- then
- echo -e "You want Youtube best video Q press 1 \n"
- echo -e "You want Youtube video code 18 Q press 2 \n"
- read opt
- if [ "$opt" -eq "1" ]
- then
- echo -e "Enter Playlist Number You want to items \n"
- read items
- echo "$folder -f best --playlist-items $items" > ~/.config/youtube-dl/config
- youtube-dl $1
- elif [ "$opt" -eq "2" ]
- then
- echo -e "Enter Playlist Number You want to items \n"
- read items
- echo "$folder -f 18 --playlist-items $items" > ~/.config/youtube-dl/config
- youtube-dl $1
- fi
- elif [ "$option" -eq "4" ]
- then
- echo -e "You want Youtube audio press 1 \n"
- echo -e "You want Soundcloud audio press 2 \n"
- read opt
- if [ "$opt" -eq "1" ]
- then
- echo -e "Enter Playlist items You want \n"
- read items
- echo "$folder -f 140 --playlist-items $items" > ~/.config/youtube-dl/config
- youtube-dl $1
- elif [ "$opt" -eq "2" ]
- then
- echo -e "Enter Playlist items You want \n"
- read items
- echo "$folder -f hls_mp3_128 --playlist-items $items" > ~/.config/youtube-dl/config
- youtube-dl $1
- fi
- elif [ "$option" -eq "5" ]
- then
- echo "-V -O" > ~/.config/youtube-dl/config
- wget -c $1 -P '/data/data/com.termux/files/home/storage/shared/Youtube'
- elif [ "$option" -eq "6" ]
- then
- echo "-c -x 16 -s 16 -k 1M" > ~/.config/youtube-dl/config
- aria2c $1 --file-allocation=none -d '/data/data/com.termux/files/home/storage/shared/Youtube'
- elif [ "$option" -eq "7" ]
- then
- echo -e "Enter start time \n"
- read start
- echo -e "Enter end time duration\n"
- read end
- echo -e "Enter output file name \n"
- read name
- echo "-g -f 140" > ~/.config/youtube-dl/config
- cd ~/storage/shared/Youtube
- ffmpeg -i $(youtube-dl $1) -ss $start -t $end -c copy $name
- elif [ "$option" -eq "8" ]
- then
- echo -e "Available formates \n"
- youtube-dl -F $1
- echo -e "Enter formates like 136+249 \n"
- read format
- echo -e "Enter Playlist Number You want to items \n"
- read items
- echo -e "$downloader --no-part --no-mtime -o '/data/data/com.termux/files/home/storage/shared/Youtube/%(playlist)s/%(title)s.%(ext)s' -i -f $format --playlist-items $items" > ~/.config/youtube-dl/config
- youtube-dl $1
- elif [ "$option" -eq "9" ]
- then
- echo -e "Downloading photos .... \n"
- gallery-dl -u dkarimulla2011@gmail.com -p Allah@786 $Gl $1 | sed 's,/?igshid=.*,,g'
- elif [ "$option" -eq "10" ]
- then
- echo -e "Enter specifying which images to download. For example '5-10' or '1,3-5 ... \n"
- read num
- echo -e "Downloading photos .... \n"
- gallery-dl -u dkarimulla2011@gmail.com -p Allah@786 $Grange $num $1 | sed 's,/?igshid=.*,,g'
- elif [ "$option" -eq "11" ]
- then
- echo -e "Please wait Downloading pdf...\n"
- cd /data/data/com.termux/files/home/storage/shared/IAS/Dishti-News-Day-Wise;ls
- wkhtmltopdf $1 $(echo $1 | sed 's,https://www.drishtiias.com/current-affairs-news-analysis-editorials/news-analysis/,,g' | sed 's,/print,,g').pdf
- ls;sleep 07
- elif [ "$option" -eq "12" ]
- then
- echo -e "Please wait Downloading spotify song...\n"
- cd storage/shared/spotify-music && ls
- echo "" > ~/.config/youtube-dl/config
- spotdl -s $1
- elif [ "$option" -eq "13" ]
- then
- cd /data/data/com.termux/files/home/storage/shared/spotify-music
- echo -e "please wait Downloading Album text file.... \n"
- spotdl -a $1 && ls
- echo -e "please Enter moving .txt file in folder \n"
- read fname
- mkdir $fname-$(echo "$(date +%A%d-%B-%Y-Time-%I-%M)")
- mv *.txt $fname-*
- cd $fname-* && pwd && ls
- echo -e "Type playlist name only without extention \n"
- read file
- spotdl -l $file.txt && rm *.txt
- elif [ "$option" -eq "14" ]
- then
- cd ~/storage/shared/Youtube && ls && gdrivedl $1
- elif [ "$option" -eq "15" ]
- then
- cd /data/data/com.termux/files/home/storage/shared/youtube
- ls
- echo -e "please wait mp3 file downloading.... \n"
- aria2c -c -x 16 -s 16 -k 1M $(lynx -listonly -nonumbers -dump $1 | grep mp3)
- ls
- elif [ "$option" -eq "16" ]
- then
- cd /data/data/com.termux/files/home/storage/shared/AIR
- ls
- echo -e "please wait mp3 file downloading.... \n"
- aria2c -c -x 16 -s 16 -k 1M $1
- ls
- elif [ "$option" -eq "17" ]
- then
- cd ~/storage/shared/Youtube && ls && gdrivedl $(lynx -listonly -nonumbers -dump $1 | grep drive)
- elif [ "$option" -eq "18" ]
- then
- cd /data/data/com.termux/files/home/storage/shared/Study-Materials
- ls
- echo -e "please wait creating directory"
- mkdir $(echo "$(date +%d-%A-%m-%B-%Y-%X%P)" | sed 's, ,-,g')
- ls
- echo -e "Entering Into the creating directory"
- read folder
- cd $folder
- echo -e "please wait .pdf file downloading.... \n"
- aria2c -c -x 16 -s 16 -k 1M $(lynx -listonly -nonumbers -dump $1 | grep .pdf )
- elif [ "$option" -eq "19" ]
- then
- cd /data/data/com.termux/files/home/storage/shared/Study-Materials
- ls
- echo -e "Enter folder name u want please wait creating directory"
- read fname
- mkdir $fname-$(echo "$(date +%d-%A-%m-%B-%Y-%X%P)" | sed 's, ,-,g')
- cd $fname-*
- pwd
- ls
- echo -e "Enter url contain direct pdf files in gdrive 0"
- echo -e "Enter url contain direct pdf files 1"
- echo -e "Enter url contain next level web page pdf file 2"
- read opt
- if [ "$opt" -eq "0" ]
- then
- lynx -listonly -nonumbers -dump $1
- echo -e "Enter links to extract name and enter .txt file name like link name\n"
- read link name
- lynx -listonly -nonumbers -dump $1 | grep $link > $name.txt
- echo -e "please wait .pdf files downloading gdrivedl.... \n"
- while read file;do gdrivedl $file;done < $name.txt
- elif [ "$opt" -eq "1" ]
- then
- lynx -listonly -nonumbers -dump $1
- echo -e "Enter links to extract name and enter .txt file name like link name\n"
- read link name
- lynx -listonly -nonumbers -dump $1 | grep $link > $name.txt
- echo -e "please wait .pdf file downloading.... \n"
- while read file;do aria2c -c -x 16 -s 16 -k 1M $file;done < $name.txt
- elif [ "$opt" -eq "2" ]
- then
- lynx -listonly -nonumbers -dump $1
- echo -e "Enter links to extract name and enter .txt file name like link name\n"
- read link name
- lynx -listonly -nonumbers -dump $1 | grep $link > $name.txt
- echo -e "please wait .pdf file downloading.... \n"
- while read file;do aria2c -c -x 16 -s 16 -k 1M $(lynx -listonly -nonumbers -dump $file | grep .pdf );done < $name.txt
- fi
- elif [ "$option" -eq "20" ]
- then
- echo "$folder --yes-playlist -f 140" > ~/.config/youtube-dl/config
- youtube-dl $1
- elif [ "$option" -eq "21" ]
- then
- echo -e "paste here your single url THAu press 1"
- echo -e "paste here your single url FinoU press 2"
- read opt
- if [ "$opt" -eq "1" ]
- then
- cd ~/storage/shared/IAS/TheHindu/;ls
- echo -e "$pwd\n Downloading web content ...."
- ls
- echo -e "paste here your single url"
- THAu
- echo -e "your single url data downloaded"
- rm New*
- sleep 3
- elif [ "$opt" -eq "2" ]
- then
- cd ~/storage/shared/StudyMaterials/Finalogy
- echo -e "$pwd\n Downloading web content ...."
- ls
- echo -e "paste here your single url"
- FinoU
- rm NewFilename*
- echo -e "your single url data downloaded"
- sleep 3
- fi
- elif [ "$option" -eq "22" ]
- then
- youtube-dl $dfol -f 140 $1 > ~/.config/youtube-dl/config
- elif [ "$option" -eq "23" ]
- then
- cd ~/storage/shared/IAS/TheHindu/;ls
- echo -e "$pwd\n Downloading web content ...."
- ls
- echo -e "paste here your single url"
- THAu
- echo -e "your single url data downloaded"
- rm New*
- sleep 3
- fi
- #/storage/emulated/0/Study-Materials/DristiIASm4a
- #elif [ "$option" -eq "21" ]
- #then
- # cd /data/data/com.termux/files/home/storage/shared/Study-Materials
- # ls
- # echo -e "Downloading web content ...."
- # TheHinduArticle > $(touch $(echo "$(date +%A%d-%B-%Y-Time-%I-%M).txt"))
- # txt2pdf --font /data/data/com.termux/files/home/DroidSerif-Regular.ttf $(echo "$(date +%A%d--%B-%Y-Time-%I-%M).txt") -o $(echo "$(date +%A%d-%B-%Y-Time-%I-%M).pdf")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement