Domain Scraper avatar

Domain Scraper

Try for free

30 minutes trial then $10.00/month - No credit card required now

Go to Store
Domain Scraper

Domain Scraper

ib4ngz/domain-scraper
Try for free

30 minutes trial then $10.00/month - No credit card required now

This actor scrapes unique domains from a list of provided URLs. It crawls each page, extracts domains, and stores them in a dataset. The actor respects a defined maximum depth and filters domains based on whether they are ICANN-approved and whether private domains are allowed.

This actor scrapes domains from a list of provided URLs. It recursively crawls the pages, extracts unique domains, and stores them in a dataset. The actor respects a defined maximum depth and filters domains based on whether they are ICANN-approved and whether private domains are allowed. Only unique domains are saved, preventing duplicates during the crawling process.

Features

  • Domain Extraction : Extracts domains from a list of provided URLs and recursively explores linked pages to gather additional domains.
  • Recursive Crawling: Crawls web pages to a user-defined maximum depth, enabling detailed exploration while managing resource usage.
  • Domain Filtering: Processes domains based on ICANN approval and user-defined preferences for private domains.
  • Unique Dataset: Ensures only unique domains are saved by preventing duplicates during the crawling process.

Input Schema

  • Start URLs (required): A list of URLs to start crawling from.
  • Maximum Depth: The maximum depth for crawling, defining how deep the crawler should explore.
  • Allow Private Domains: Option to enable or disable crawling of private domains.
  • ICANN Domains Only: Option to restrict processing to ICANN-approved domains only.
  • Proxy Configuration: Configuration settings for selecting and using proxies during crawling.
  • Minimum Concurrency: The minimum number of concurrent requests or pages to process.
  • Maximum Concurrency: The maximum number of concurrent requests or pages to process.

Dataset Schema

  • domain: The full domain name.
  • domainWithoutSuffix: The domain without the public suffix (e.g., example from example.com).
  • hostname: The hostname of the domain.
  • isIcann: Indicates whether the domain is ICANN-approved (boolean).
  • publicSuffix: The public suffix of the domain (e.g., .com, .org).
  • isPrivate: Indicates whether the domain is a private domain (boolean).
  • subdomain: The subdomain part of the domain (e.g., sub.example.com).

How to Use

  1. Set up the Actor
    Start by providing a list of URLs to begin the crawling process. You can either manually input the URLs or provide a list in the actor configuration.

  2. Configure the Input Parameters

    • Start URLs: Provide the initial URLs from which the crawler will start.
    • Maximum Depth: Define how deep the crawler should explore.
    • Allow Private Domains: Choose whether to allow crawling of private domains.
    • ICANN Domains Only: Set whether to crawl only ICANN-approved domains.
    • Proxy Configuration: If necessary, configure the proxy settings for your crawler.
    • Concurrency: Adjust the minimum and maximum concurrency based on your needs.
  3. Run the Actor
    Once the input parameters are configured, run the actor to start the crawling process. The actor will crawl the pages, extract unique domains, and store the results in the dataset.

  4. View Results
    After the actor finishes running, you can view the extracted domains in the dataset. The data will be displayed in a table format with the following fields:

    • Domain
    • Domain Without Suffix
    • Hostname
    • ICANN Domain
    • Public Suffix
    • Private Domain
    • Subdomain
  5. Export Data
    You can export the dataset for further processing or analysis. The results are saved in a structured format for easy integration with other tools.

  6. Modify Parameters
    Adjust the configuration and rerun the actor as needed to gather additional data or refine the crawling process.

Conclusion

This actor provides an efficient solution for scraping and extracting unique domains from a list of URLs. It recursively crawls the provided pages, extracts domains, and stores them in a dataset. By respecting a defined maximum depth and filtering domains based on ICANN approval and private domain allowance, it ensures only relevant domains are captured.

The actor is optimized to prevent duplicates by saving only unique domains during the crawling process. This makes it a valuable tool for anyone looking to gather domain data in a structured and efficient manner, while maintaining control over the types of domains collected.

Developer
Maintained by Community

Actor Metrics

  • 3 monthly users

  • 1 star

  • >99% runs succeeded

  • Created in Dec 2024

  • Modified 11 hours ago