Read active tab URL from a browser with Python ?

alex23 wuwei23 at
Wed Jul 3 03:38:34 CEST 2013

On 3/07/2013 10:51 AM, goldtech wrote:
> I've goggled this but haven't found a way (at least a way I understand) for a running Python script to get the current URL in a browser's location bar. Is there a way? I'm using Windows so maybe that would provide a way (or not).
> This isn't for a browser controlled/automated by Python that Pyhton might have a "hook" in, but just a "typical" running browser FF, IE...

Unfortunately, I don't think there's a simple, consistent way to do this 
without delving down into deep Windows COM voodoo like this:

Another option might be to use Python in conjuction with AutoIt:

More information about the Python-list mailing list