Jump to content

Running a browser from Python [SOLVED]


Guest fiomba
 Share

Recommended Posts

I am very newbie in python.

I would like to launch a browser (for ex. Mozilla) but with parameters, that is the url address of a page .

 

I have tried with

import os
os.system('mozilla')

It opens Mozilla and when I exit it returns "0"

But it does not work in this form:

os.system('mozilla', 'http://www.google.com')

TypeError: system() takes exactly 1 argument (2 given)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...