Join Discord
Powered by
Crawling one link at a time
# crawlee-python
u
urbanus_22811
08/21/2025, 4:52 PM
Hi all, moving my first steps with crawlee and trying out the basic example on
https://crawlee.dev/python
. Is there a (clean) way to run the crawling one step at a time - with a step being a single execution of
request_handler
?
p
pijukatel
08/22/2025, 9:40 AM
Hello, maybe you can use
concurrency_settings
argument for the crawler and set
max_concurrency=1
. Alternatively, you could probably add a lock to your request_handler Limiting concurrency:
https://crawlee.dev/python/api/class/BasicCrawler#__init__
https://crawlee.dev/python/api/class/ConcurrencySettings
Adding lock:
https://docs.python.org/3/library/asyncio-sync.html#lock
u
urbanus_22811
08/22/2025, 1:35 PM
Neat, thank you! I was looking for something built-in in the API, but in fact that sounds like a simple enough solution!
Previous
Next