Skip to content

Commit

Permalink
Merge pull request #165 from pycrusher/improvement
Browse files Browse the repository at this point in the history
Add explanation for argument 'base_url'
  • Loading branch information
kmike committed Nov 3, 2019
2 parents 0d3f42b + 28cd0f1 commit 93719a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions parsel/selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ class Selector(object):
``type`` defines the selector type, it can be ``"html"``, ``"xml"`` or ``None`` (default).
If ``type`` is ``None``, the selector defaults to ``"html"``.
``base_url`` allows setting a URL for the document. This is needed when looking up external entities with relative paths.
See [`lxml` documentation](https://lxml.de/api/index.html) ``lxml.etree.fromstring`` for more information.
"""

__slots__ = ['text', 'namespaces', 'type', '_expr', 'root',
Expand Down

0 comments on commit 93719a1

Please sign in to comment.