Skip to content

Commit 93719a1

Browse files
authored
Merge pull request #165 from pycrusher/improvement
Add explanation for argument 'base_url'
2 parents 0d3f42b + 28cd0f1 commit 93719a1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

parsel/selector.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ class Selector(object):
172172
173173
``type`` defines the selector type, it can be ``"html"``, ``"xml"`` or ``None`` (default).
174174
If ``type`` is ``None``, the selector defaults to ``"html"``.
175+
176+
``base_url`` allows setting a URL for the document. This is needed when looking up external entities with relative paths.
177+
See [`lxml` documentation](https://lxml.de/api/index.html) ``lxml.etree.fromstring`` for more information.
175178
"""
176179

177180
__slots__ = ['text', 'namespaces', 'type', '_expr', 'root',

0 commit comments

Comments
 (0)