Skip to content

Does crawl4AI already have a function to scrape all related URLs from a root URL? #463

Closed

Description

@QuangTQV

Description: Starting from a root URL, it will navigate to child URLs, scraping content in parallel while collecting links. It can utilize a queue or some other mechanism and should allow setting a maximum depth parameter. It returns a list of dictionaries, where each element contains information about a URL (link, content, depth, images, markdown, etc.)

Activity

  1. aravindkarnam commented on Jan 16, 2025

    @aravindkarnam
    Collaborator

    Hi @QuangTQV. We are currently working on a scraper module that takes in a root URL then does a Breadth First traversal until the configured depth is reached. It's currently under review and testing.

    If you are interested in trying this out, you can check this PR
    https://github.com/aravindkarnam/crawl4ai/tree/scraper-uc

    there's a quick start example in
    https://github.com/aravindkarnam/crawl4ai/blob/scraper-uc/docs/scraper/scraper_quickstart.py

    Please see if this meets your requirements. We are working on some performance enhancements, post that this will be released.

  2. YuanBoKong commented on Jan 16, 2025

    @YuanBoKong

    @QuangTQV We are working on the same thing, but the current solution based on crawl4ai is relatively slow. Could we discuss the implementation ideas more in the future?😀

  3. unclecode commented on Jan 16, 2025

    @unclecode
    Owner

    @1933211129 @QuangTQV The new version 0.4.3 includes a very strong component for parallel crawling and will serve as the core for the "scraper" branch. I plan to merge the scraper branch that @aravindkarnam worked on. In the meantime, check this link to gather some ideas for parallel crawling: https://docs.crawl4ai.com/advanced/multi-url-crawling/

  4. Repository owner locked and limited conversation to collaborators on Jan 19, 2025
  5. converted this issue into a discussion #485 on Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions