Sponsored Content
Full Discussion: Web browser module in python
Top Forums Programming Web browser module in python Post 302785297 by in2nix4life on Monday 25th of March 2013 09:19:40 AM
Old 03-25-2013
Opening a new tab pretty much suggests that a browser instance is already running. Perhaps opening an initial browser instance and then the tabs would work better.

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

 

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
tmserver(1)						      Translate Toolkit 1.3.0						       tmserver(1)

NAME
tmserver - a Translation Memory server, SYNOPSIS
tmserver --bind=HOSTNAME --port=PORT [--tmdb=TMDBFILE] [--import-translation-file=TMFILE [--import-source-lang=SOURCE_LANG] [--import-tar- get-lang=TARGET_LANG]] Where TMDBFILE is the sqlite database file containing tmdb translation memory data, if not specified a new temporary database is created, and TMFILE is a translation file (po, xliff, etc.) that should be imported into the database (mostly useful when no tmdb file is speci- fied). DESCRIPTION
tmserver is a Translation Memory service that can be queried via HTTP using a simple REST like URL/http and data is exchanged between server and client encoded in JSON. OPTIONS
-h, --help show this help message and exit -d TMDBFILE, --tmdb=TMDBFILE translation memory database -f TMFILES, --import-translation-file=TMFILE translation file to import into the database -t TARGET_LANG, --import-target-lang=TARGET_LANG target language of translation files -s SOURCE_LANG, --import-source-lang=SOURCE_LANG source language of translation files -b BIND, --bind=HOSTNAME address to bind server to -p PORT, --port=PORT port to listen on EXAMPLE
The easiest way to run the server for testing is to pass it a large translation file (maybe generated by pocompendium) to create a tmdb database on the fly. tmserver -b localhost -p 8080 -f compendium.po -s en_US -t ar The server can be queried using a webbrowser. The url would be http://HOST:PORT/tmserver/SOURCE_LANG/TARGET_LANG/unit/STRING So to see suggestions for "open file" try the url http://localhost:8080/tmserver/en_US/ar/unit/open+file Translate Toolkit 1.3.0 tmserver(1)
All times are GMT -4. The time now is 08:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy