I am trying to add a feature to my program where the user can interact with the program to run specific functions. But the best I can think of is this:
while input != "Exit" and input != "Quit":
if input() == 'command' + arguments:
Do X
elseif input() == 'Othercommand' + arguments:
Do Y
This doesn't sound like a good solution though.
This program will only be used by me so it doesn't need to be secure in terms of input checks. It is not really big enough project to use a GUI either (though I have done that before).
The program is going to be a webscraper where I can output the data as a JSON file, and read lists to go and scrape different websites, so this will have different functions like read file, save file, update data, etc. I am not sure whether this is the best idea for this type of program so any suggestions about different ideas would be welcome.