Sponsored Content
Full Discussion: Web browser module in python
Top Forums Programming Web browser module in python Post 302784957 by pandeesh on Sunday 24th of March 2013 12:31:07 AM
Old 03-24-2013
Web browser module in python

Hi,

I am trying to multiple urls in multiple tabs within a browser window.
I am using webbrowser module in python:
My code:
Code:
import webbrowser

li = ['http://unix.com','http://google.com','http://yahoo.com']
for url in li:
  webbrowser.open_new_tab(url)

This code works fine, if the browser is already opened.
If the browser is not started yet, then the code opens three new windows of the browser which i don;t want. How to control it to open within a browser window?

Thanks in advance.

Thanks,
Pandeeswaran
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Web browser and web server for Unix

Hi there all I am looking for both a web browser as well as a web server (Ie. Netscape Fasttrack) that will run on HPUX 10. If you know where I can get these free via FTP, please contact me as soon as possible!! Thanks, Mark (1 Reply)
Discussion started by: mleathers
1 Replies

2. Linux

web browser from konsole

hi experts, i'm running red hat linux, consider there's no visual interface, no X server... actually there is one but it's written in Python! what i need is to intall a decent web browser on it! is it possible? and i only have abt 100 MBs of free disk space... (1 Reply)
Discussion started by: elzalem
1 Replies

3. Solaris

Web browser not opening

On clicking on my WEB BROWSER . no window is appearing , only a dialog box appearing with named "ALERT" any nothing else. What is browser package name , which is by default in Solaris 10 (3 Replies)
Discussion started by: kush singh
3 Replies

4. What is on Your Mind?

The Dillo Web Browser

Hello, Have you all noticed that the Dillo web browser always reports bugs just about on every web page. Richard Stallman's Personal Page However some, but not many have none. cheers (2 Replies)
Discussion started by: nigelc
2 Replies

5. Web Development

What is Your Favorite Web Browser?

OK, please vote on your favorite web browser and comment why! Only currently supported browers please! Thanks. PS: I am a big FireFox fan. FireFox add-ons rock! (61 Replies)
Discussion started by: Neo
61 Replies

6. UNIX for Dummies Questions & Answers

Practice UNIX on web Browser?

To practice SQL, there is a very good website called www.sqlfiddle.com no need of installing any external software, it can do almost anything in PL/SQL and Oracle. In a similar manner, is there a good website where i can practice Unix commands on a broswer? I mean, it should be able to execute... (1 Reply)
Discussion started by: Manjunath B
1 Replies

7. UNIX for Beginners Questions & Answers

How can I use my /bin/sh script on web browser?

Hello, I have created my script which works properly through the terminal, but I want to convert it to perform all functions as it performs through terminal, but in this case perform through web browser. My /bin/sh script is:... (1 Reply)
Discussion started by: juta2020
1 Replies
DOCCENTRAL(1)						      General Commands Manual						     DOCCENTRAL(1)

NAME
doccentral - web-based documentation browser SYNOPSIS
doccentral [document-name] OPTIONS
The only option that can be passed to the doccentral wrapper is a document name (often the same as the name of the package which provides it) for direct access (automatic search for the given parameter). DESCRIPTION
Doc-Central is a simple tool to help you browse the documentation installed on your Debian system. It uses the doc-base registration entries for documentation to build a list of available documentation. You can view this list via any web browser. The easiest way to view the doc-central index is to use the doccentral tool, which will look for a webbrowser on your system and start that with the correct page. If for any reason doccentral cannot find a suitable browser or you want to use another one, you can also use the following URL: http://localhost/dc/ <http://localhost/dc/> ENVIRONMENT
BROWSER Override the normal browser selection from doccentral by specifying a specific browser. DC_HOST Override the location of Doc-Central (usually localhost) AUTHOR
Guilherme de S. Pastore <guilherme.pastore@terra.com.br> <mailto:guilherme.pastore@terra.com.br> Wichert Akkerman <wakkerma@debian.org> <mailto:wakkerma@debian.org> DEBIAN
Debian tools DOCCENTRAL(1)
All times are GMT -4. The time now is 01:51 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy