How to launch new Firefox window with multiple tabs using Python
Posted
by newbie py
on Stack Overflow
See other posts from Stack Overflow
or by newbie py
Published on 2010-04-16T02:42:16Z
Indexed on
2010/04/16
3:23 UTC
Read the original article
Hit count: 193
Hi, I want to create a MSWindows Python program that would launch a new Firefox window with multiple tabs each time it is run. For example if I want to search "hello", a new window pops out (even if a Firefox window is already open) and then launches a Google and Bing tabs searching for "hello". If I change the keyword to "world", a new browser pops out again with Google and Bing tabs searching for "world".
I've looked at the webbrowser module but couldn't get it to: 1. Launch a new browser when a browser is already open: e.g. webbrowser.open('http://www.google.com',new=1) will instead open a new tab 2. Launch multiple tabs simultaneously in the same window
Appreciate the help.
Thanks.
© Stack Overflow or respective owner