Clickable hyperlinks

Michael Torrie torriem at gmail.com
Wed Jan 4 23:41:20 EST 2017


On 01/04/2017 09:19 PM, Deborah Swanson wrote:
> Or, take a look at import's code and figure out how it opens a url in a
> browser. I imagine it's the 'webbrowser' module you mention. If it tries
> several methods, just pick one that will work for you.

webbrowser is part of the python standard library:
https://docs.python.org/3/library/webbrowser.html

It uses whatever method is appropriate for the platform for opening a
url in the user's default browser.

> Or, take a look at this Index of Packages Matching 'webbrowser' (~50
> packages)
> https://pypi.python.org/pypi?%3Aaction=search&term=webbrowser&submit=sea
> rch

There may be modules in there that will be useful, but the first port of
call should always be the python standard library.

> D'Arcy was right, there's lots in python that's internet aware, though
> that wasn't the question I knew to ask.

That's why it's always good to state your end goal when asking about things.






More information about the Python-list mailing list