0

I am using python 2.7 but am not able to get anything how to read url which are active in tab of browsers.

So far i tried this

import win32gui
import win32process
import psutil
#w=win32gui
#value=w.GetWindowText(w.GetForegroundWindow())
#print(value)
appwindow = win32gui.GetForegroundWindow()
ProcessID = win32process.GetWindowThreadProcessId(appwindow)
#procname = psutil.Process(ProcessID)
#applicname = procname.name()
print("hello")
Nitesh
  • 1

1 Answers1

0

Check out pybrinf package, is Windows supported and allows you to get some info about a browser.

Andrew
  • 1