Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
VMRuiz committed Jun 3, 2024
1 parent a2388f2 commit 41f38e1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/nested-loaders.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Example::
<a class="email" href="mailto:[email protected]">Email Us</a>
</footer>

Without nested loaders, you need to specify the full xpath (or css) for each value
Without nested loaders, you need to specify the full Xpath (or CSS) for each value
that you wish to extract.

Example::
Expand All @@ -40,6 +40,8 @@ Example::
# no need to call footer_loader.load_item()
loader.load_item()

You can nest loaders arbitrarily and they work with either xpath or css selectors.
You can nest loaders arbitrarily and they work with either xpath or CSS selectors.
If the specified XPath (or CSS) selector does not exist, it will return None.

As a general guideline, use nested loaders when they make your code simpler but do
not go overboard with nesting or your parser can become difficult to read.

0 comments on commit 41f38e1

Please sign in to comment.