nonpolynomial237
nonpolynomial237

Reputation: 2169

Python URL handlers for web browsers

How can I use Python to add a handler to a browser, so when someone clicks a link like foo://foobar/ it'll open my program to handle it? Ideally there would be a way to do it cross-platform, but I recognize that OS-specific code will probably be needed.

Upvotes: 3

Views: 1665

Answers (2)

Senthil Kumaran
Senthil Kumaran

Reputation: 56881

I am not sure, why you are looking for OS Specific code. But there is module called webbrowser, which you are use in your programs as a handler which can open your platform specific browser. Does this help?

Upvotes: -1

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 798754

GNOME

Windows

OS X

Upvotes: 3

Related Questions