I just have a simple question. When I do something like
import webbrowser
webbrowser.open('www.google.com')
it works,and opens a page using my default browser However,when I store the url in a variable, it doesn't open it..doesn't throw up any errors or anything either.. something like:
import webbrowser
url=raw_input("Enter url")
webbrowser.open(url)
Anyone have any ideas as to why this might be happening?
The solution to this problem is to include http:// in the address, i.e., http://www.google.com.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With