Python URL Handlers for Web Browsers

How can I use Python to add a handler to the browser, so when someone clicks a link, for example foo: // foobar /, it will open my program to handle it? Ideally, there would be a way to make this cross-platform, but I understand that OS-specific code is likely to be needed.

+3
source share
2 answers

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

-1
source

All Articles