Launch IE from python?

Please support our Python advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Oct 2006
Posts: 13
Reputation: DarkFlash is an unknown quantity at this point 
Solved Threads: 2
DarkFlash's Avatar
DarkFlash DarkFlash is offline Offline
Newbie Poster

Launch IE from python?

 
0
  #1
Oct 26th, 2006
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:
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 16
Reputation: Zonr_0 is an unknown quantity at this point 
Solved Threads: 3
Zonr_0 Zonr_0 is offline Offline
Newbie Poster

Re: Launch IE from python?

 
0
  #2
Oct 27th, 2006
Will this work?

Originally Posted by vegaseat View Post
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]
Last edited by Zonr_0; Oct 27th, 2006 at 1:37 am. Reason: ops, no need to quote the only other post in the topic >_>
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 2
Reputation: utabintarbo is an unknown quantity at this point 
Solved Threads: 1
utabintarbo's Avatar
utabintarbo utabintarbo is offline Offline
Newbie Poster

Re: Launch IE from python?

 
0
  #3
Oct 27th, 2006
You can also look at os.system() and the subprocess module.
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 13
Reputation: DarkFlash is an unknown quantity at this point 
Solved Threads: 2
DarkFlash's Avatar
DarkFlash DarkFlash is offline Offline
Newbie Poster

Re: Launch IE from python?

 
0
  #4
Oct 27th, 2006
Worked great, thanks for the info!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Python Forum


Views: 2752 | Replies: 3
Thread Tools Search this Thread



Tag cloud for Python
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC