from PyQt.QtCore import QUrl url = QUrl("https://example.com/path/to/resource?param1=value1¶m2=value2")
scheme = url.scheme() host = url.host() path = url.path() params = url.queryItems()The QUrl object provides methods to access its individual components. We can retrieve the scheme, host, path, and query parameters using the corresponding methods. Package library: PyQt5.QtCore.