fix: Do not share state between different crawlers unless requested by Pijukatel · Pull Request #1669 · apify/crawlee-python
github-actions
bot
added
t-tooling
labels
Jan 12, 2026
Pijukatel
changed the title
Add crawler
fix: Do not share state between different crawlers unless requested
Mantisus pushed a commit to Mantisus/crawlee-python that referenced this pull request
Feb 9, 2026…pify#1669) ### Description - Introduces a new argument `id` for `BasicCrawler`. This argument controls the shared state. - Each new instance of the `BasicCrawler` gets an automatically incremented `id` to avoid unintentional sharing of state between crawlers. - If two crawlers should use the same state, then it is possible to pass the same `id` to the crawler `__init__`. ### Issues Closes: apify#1627 ### Testing - Added tests.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters