I want to extract the information for GetCapabilities-URL, GetMap-URL and GetFeatureInfoUrl, from a QGIS Tile Layer, using PyQGIS:
The only way I found yet, is:
for layer in QgsProject.instance().mapLayers().values():
print(layer.htmlMetadata())
and then use a htmlparser. But I'm pretty sure there is a easier way and I couldn't find it.