Skip to content

Commit 63cc5e3

Browse files
committed
extend AdaptivePlaywrightCrawlerStatisticState for AdaptivePlaywrightCrawler
1 parent 597ce13 commit 63cc5e3

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/crawlee/crawlers/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@
2323
'AdaptivePlaywrightCrawler',
2424
'AdaptivePlaywrightCrawlingContext',
2525
'AdaptivePlaywrightPreNavCrawlingContext',
26+
'AdaptivePlaywrightCrawlerStatisticState',
2627
'RenderingType',
2728
'RenderingTypePrediction',
2829
'RenderingTypePredictor',
2930
):
3031
from ._adaptive_playwright import (
3132
AdaptivePlaywrightCrawler,
33+
AdaptivePlaywrightCrawlerStatisticState,
3234
AdaptivePlaywrightCrawlingContext,
3335
AdaptivePlaywrightPreNavCrawlingContext,
3436
RenderingType,

src/crawlee/crawlers/_adaptive_playwright/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,16 @@
1111

1212
# The following imports are wrapped in try_import to handle optional dependencies,
1313
# ensuring the module can still function even if these dependencies are missing.
14-
with _try_import(__name__, 'BeautifulSoupCrawler'):
14+
with _try_import(__name__, 'RenderingType', 'RenderingTypePrediction', 'RenderingTypePredictor'):
1515
from ._rendering_type_predictor import RenderingType, RenderingTypePrediction, RenderingTypePredictor
16-
with _try_import(__name__, 'BeautifulSoupCrawlingContext'):
16+
with _try_import(__name__, 'AdaptivePlaywrightCrawler'):
1717
from ._adaptive_playwright_crawler import AdaptivePlaywrightCrawler
18+
with _try_import(__name__, 'AdaptivePlaywrightCrawlerStatisticState'):
19+
from ._adaptive_playwright_crawler import AdaptivePlaywrightCrawlerStatisticState
1820

1921
__all__ = [
2022
'AdaptivePlaywrightCrawler',
23+
'AdaptivePlaywrightCrawlerStatisticState',
2124
'AdaptivePlaywrightCrawlingContext',
2225
'AdaptivePlaywrightPreNavCrawlingContext',
2326
'RenderingType',

0 commit comments

Comments
 (0)