Sway
Ruby and Python are married.
- Dec 19, 2010
- 194
- 76
I have no idea what to name this but you pretty much enter the website you want to go to (through the command line) and it will open your default browser and take you to that website.
Source:
Source 2:
Source 3:
Source 4 and final:
Snippet:
It was created in Python in roughly 15 minutes. Was experimenting with the webbrowser module. I will add other options like opening the website in a new tab or choosing a browser of your choice.
FAQ:
Q) Couldn't I just open my browser and go to the website, instead of spending more time using this?
A) This is mainly for educational purposes. I have no idea why you would use this over a real browser yet.. however I'm sure there is a good use. Still learning about the webbrowser module.
Source:
You must be registered for see links
Source 2:
You must be registered for see links
Source 3:
You must be registered for see links
Source 4 and final:
You must be registered for see links
Snippet:
Code:
def main():
print()
print("Do not add 'http://'")
website = input("Website: ")
print("Opening website...")
time.sleep(2)
webbrowser.open_new("http://%s" % website)
startOver()
It was created in Python in roughly 15 minutes. Was experimenting with the webbrowser module. I will add other options like opening the website in a new tab or choosing a browser of your choice.
FAQ:
Q) Couldn't I just open my browser and go to the website, instead of spending more time using this?
A) This is mainly for educational purposes. I have no idea why you would use this over a real browser yet.. however I'm sure there is a good use. Still learning about the webbrowser module.