itisak-51/Termux-Downloader — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a single easy to run shell script for Termux on Android that works as a resumable file downloader.

I want it to handle two ways of downloading. First, from a links.txt file with one URL per line, with optional custom filenames using a separator like URL then filename. Second, from a shared Google Drive folder link. For both modes, show a simple numbered list of files, show sizes when possible, and let me choose files by typing things like 1,3,5 to 8, all, or none.

Use aria2 so interrupted downloads can resume if I run the same command again. For Google Drive, make it work without a browser inside Termux, show the auth link, let me paste the code, then cache the token for next time. Put downloads in a sensible Android Download folder, write a log file, and include clear setup and usage instructions in the README. Keep it self contained, with no manual Python editing.

Want more depth? Deep Reverse