I am writing a web app using Flask, Python and Spotipy (https://spotipy.readthedocs.io/en/latest/). Spotipy requires an authentication token, that just has the user enter a url they were directed to after logging into Spotify and checks that against the url you assigned as your redirect url. It prompts them on the command line, but I want to change this to have a text box they can enter the url in, and then grab that value and pass it to the command line.
My question is, is there a way to pass a value to the command line when a prompt pops up using python?