Get the actual url with python


Here is the deal. I got some pages loaded in a ConnectPort x8 and I work with python inside HTML (pih) for getting information of a zigbee mesh network. The thing is that I need some parameters that I pass in the URL so I need to capture them.
Does anyone know how to get the actual URL of a web page using python? or even better, if it is possible to get the parameters in the URL?

Thanks a lot for the help.