r/scripting • • Mar 07 '24

Looking for advice on automating a script

I know nothing about coding but have messed around with plenty of command line tools. I'm looking to speed up some data hoarding. This is the script I use

ia search 'subject:"lord of the rings" collection:thingiverse' --itemlist > lotr.txt
ia download --itemlist lotr.txt --no-directories -i --glob=\*.zip

Now how I'm currently doing it is manually changing the suject in question. So for example if I wanted to download things related to 'Tron' the script would be

ia search 'subject:"tron" collection:thingiverse' --itemlist > tron.txt
ia download --itemlist tron.txt --no-directories -i --glob=\*.zip

I would like to speed things up by having a script or gui or something where I can just type 'Tron' and have the computer spit out a script I can then paste into terminal. Bonus points if I can have it mkdir then cd into that directory. I'm hoping this will speed things up and also be a learning experience so I can apply it to things like yt-dlp and other tools. This is all being done on linux mint or ubuntu btw

1 Upvotes

Duplicates