MCPcopy Create free account
hub / github.com/gawel/pyquery / base_url

Method base_url

pyquery/pyquery.py:1645–1651  ·  view source on GitHub ↗

Return the url of current html document or None if not available.

(self)

Source from the content-addressed store, hash-verified

1643
1644 @property
1645 def base_url(self):
1646 """Return the url of current html document or None if not available.
1647 """
1648 if self._base_url is not None:
1649 return self._base_url
1650 if self._parent is not no_default:
1651 return self._parent.base_url
1652
1653 def make_links_absolute(self, base_url=None):
1654 """Make all links absolute.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected