feat: allow non-href links extract & enqueue by kozlice · Pull Request #1781 · apify/crawlee-python
Description
Right now href attribute is hardcoded for enqueue_links and extract_links methods.
This change would allow to:
- grab image links
- grab links from exotic attributes in SPA
Examples:
await context.extract_links(selector="nav ul li", attribute="data-href") await context.enqueue_links(selector=".gallery .item img", attribute="src", label="image")
Issues
?
Testing
Covered by new tests.
Checklist
- CI passed