How to execute a hyperlink?

Barak, Ron Ron.Barak at lsi.com
Wed Jan 28 09:54:24 EST 2009


Hi Muddy,

http://docs.python.org/library/urllib2.html may help.

Bye,
Ron.

-----Original Message-----
From: Muddy Coder [mailto:cosmo_general at yahoo.com]
Sent: Wednesday, January 28, 2009 03:00
To: python-list at python.org
Subject: How to execute a hyperlink?

Hi Folks,

Module os provides a means of running shell commands, such as:

import os
os.system('dir .')

will execute command dir

I think a hyperlink should also be executed. I tried:

os.system('http://somedomain.com/foo.cgi?name=foo&passwd=bar')

but I got kicked out by the Python interpreter. I wonder somebody knows the syntax of triggering a hyperlink? Thanks in advance!


Muddy Coder




More information about the Python-list mailing list