I am creating a script to help with some data aggregation. I am trying to test this before I add the rest of the search terms into my list. If I run the script, it displays the search term exactly how I want it on the screen with the print command (It contains +'s in the string), however, when it goes to the browser, it is missing the +'s, it just passes through with the terms and spaces in between. Running the code shows the difference from on screen and chrome browser. Can anyone help me figure out why? Thank you!!
I have tried using "+" + but it still will not go to the browser
import webbrowser
input = input("Enter item> ")
searchterms =["price + availability + made in + year created + "]
price = searchterms[0] + input
print (price)
webbrowser.open_new_tab('http://www.google.com/search?btnG=1&q=%s' % price)
I expected the output in chrome to have the terms and variable to be separated with + example, if you enter the item "Hammer" on screen it displays price + availability + made in + year created + hammer but in the browser it displays price availability made in year created hammer