954,184 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Launch IE from python?

Hey guys, I'm just about done with a program and I need to know how to launch an IE window (or any browser I suppose) from the command prompt. Can anybody help me? thanks!:cheesy:

DarkFlash
Newbie Poster
13 posts since Oct 2006
Reputation Points: 10
Solved Threads: 2
 

Will this work?

The following little Python code will bring up your default webbrowser and connect it to the given URL ... [php]import webbrowser

# you have to be connected to the internet # supply a URL of your choice webbrowser.open('http://www.python.org/') [/php]

Zonr_0
Newbie Poster
16 posts since Oct 2006
Reputation Points: 10
Solved Threads: 3
 

You can also look at os.system() and the subprocess module.

utabintarbo
Newbie Poster
2 posts since Oct 2006
Reputation Points: 10
Solved Threads: 1
 

Worked great, thanks for the info! :D

DarkFlash
Newbie Poster
13 posts since Oct 2006
Reputation Points: 10
Solved Threads: 2
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You