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 2c9b0ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.10.13
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 2c9b0ec

Please sign in to comment.