Repository navigation
Commit fddc577
authored
fix(crawlers): Use the HTTP client and session pool of
### Description
- Both sub crawlers of `AdaptivePlaywrightCrawler` use the HTTP client
and the session pool of the adaptive crawler, instead of building
defaults of their own that nothing entered or closed.
- Static requests and robots.txt lookups go through the client that the
crawler enters and closes on every run.
### Issues
- Part of: #2301
- Follow-up: #2445
### Testing
- Integration test, for static and browser requests, that the sub
crawlers send through the HTTP client the crawler closes.
*✍️ Drafted by Claude Code*AdaptivePlaywrightCrawler in its sub crawlers (#2451)1 parent e24df49 commit fddc577
2 files changed
Lines changed: 33 additions & 1 deletion
File tree
- src/crawlee/crawlers/_adaptive_playwright
- tests/integration/crawlers/_adaptive_playwright
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
182 | 187 | | |
183 | 188 | | |
184 | 189 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
720 | 720 | | |
721 | 721 | | |
722 | 722 | | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
723 | 750 | | |
724 | 751 | | |
725 | 752 | | |
| |||
0 commit comments