Crawling one link at a time
# crawlee-python
u
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
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
Neat, thank you! I was looking for something built-in in the API, but in fact that sounds like a simple enough solution!