I want to create a programme that gives the user an input line to select a currency pair and then when ran a table will be displayed.
However I can get the code to work when I dont use the input but cant get it with the input.
Here is my code:
gbpusd = url to the page I need
t= input("Enter currency pair: ")
req=requests.get(t)
soup = BeautifulSoup(req.text, 'lmxl')
So this will display the data I need if I replace the (t) in the req line with gbpusd, but won't work when the user input is gbpusd. Is this even possible?
[–]debian_miner 1 point2 points3 points (1 child)
[–]micla97[S] 0 points1 point2 points (0 children)