Skip to content

Commit 0d3e474

Browse files
authored
docs: update selector description for EnqueueLinksFunction (#910)
### Description - Update docs for `selector` in `EnqueueLinksFunction`
1 parent d43d7e6 commit 0d3e474

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/crawlee/_types.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def __call__(
254254

255255

256256
class EnqueueLinksFunction(Protocol):
257-
"""A function type for enqueueing new URLs to crawl, based on elements selected by a CSS selector.
257+
"""A function type for enqueueing new URLs to crawl, based on elements selected by a selector.
258258
259259
This function is used to extract and enqueue new URLs from the current page for further crawling.
260260
"""
@@ -270,7 +270,10 @@ def __call__(
270270
"""A call dunder method.
271271
272272
Args:
273-
selector: CSS selector used to find the elements containing the links.
273+
selector: selector used to find the elements containing the links.
274+
- PlaywrightCrawler: supports CSS and XPath selectors
275+
- ParselCrawler: supports CSS selectors
276+
- BeautifulSoupCrawler: supports CSS selectors
274277
label: Label for the newly created `Request` objects, used for request routing.
275278
user_data: User data to be provided to the newly created `Request` objects.
276279
**kwargs: Additional arguments for the `add_requests` method.

0 commit comments

Comments
 (0)