How to execute a hyperlink?
alex23
wuwei23 at gmail.com
Wed Jan 28 00:08:16 EST 2009
On Jan 28, 10:59 am, Muddy Coder <cosmo_gene... at yahoo.com> wrote:
> Module os provides a means of running shell commands [...]
>
> 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')
Well, clearly all you need to do is get your system to recognise URLs
as shell commands and you're set...
But if you'd like the *right* tool for the job, try webbrowser.
More information about the Python-list
mailing list