I have a Python program that requires different parameters each time. The parameters are URLs stored in a file called urls.txt
. So for example if urls.txt
contains:
abc.com
xyz.com
def.com
mno.com
I'd want to execute:
python myProgram.py -u 'abc.com' -f output.txt
python myProgram.py -u 'xyz.com' -f output.txt
python myProgram.py -u 'def.com' -f output.txt
python myProgram.py -u 'mno.com' -f output.txt
How is this done?