Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@

from crawlee.crawlers import (
AdaptivePlaywrightCrawler,
AdaptivePlaywrightCrawlerStatisticState,
AdaptivePlaywrightCrawlingContext,
)
from crawlee.statistics import Statistics

from .selectolax_parser import SelectolaxLexborParser

Expand All @@ -15,8 +13,6 @@ async def main() -> None:
max_requests_per_crawl=10,
# Use custom Selectolax parser for static content parsing.
static_parser=SelectolaxLexborParser(),
# Set up statistics with AdaptivePlaywrightCrawlerStatisticState.
statistics=Statistics(state_model=AdaptivePlaywrightCrawlerStatisticState),
)

@crawler.router.default_handler
Expand Down
Loading