Skip to content

Per Domain Concurrency #1263

Description

@Ehsan-U

Does Crawlee support per-domain concurrency?

In this example, the first domain (paklap.pk) can't handle much load, but the second domain (centurycomputerpk.com) can.
Does Crawlee allow setting concurrency limits per domain, or is concurrency managed globally?

In Scrapy, this is possible through the download_slot mechanism. I’m wondering if there’s an equivalent in Crawlee.

crawler = ParselCrawler(concurrency_settings=ConcurrencySettings(
        desired_concurrency=1,
    ))

await crawler.run([Request.from_url("https://www.paklap.pk/laptops-prices.html", label="paklap_listing")])
await crawler.run([Request.from_url("https://centurycomputerpk.com/product-category/laptops", label="century_listing")])

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    t-toolingIssues with this label are in the ownership of the tooling team.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions