Web Scraper avatar
Web Scraper

Pricing

Pay per usage

Go to Store
Web Scraper

Web Scraper

Developed by

Apify

Apify

Maintained by Apify

Crawls arbitrary websites using a web browser and extracts structured data from web pages using a provided JavaScript function. The Actor supports both recursive crawling and lists of URLs, and automatically manages concurrency for maximum performance.

4.5 (23)

Pricing

Pay per usage

868

Total users

88K

Monthly users

4.6K

Runs succeeded

>99%

Issues response

12 days

Last modified

a month ago

CH

Crawler goes off domain

Closed

chimaro opened this issue
8 months ago

What is the setting that tells the scraper to not leave the original domain? For example if I scrape a site example.com it finds a social link and then its scraping facebook.com/link but I want it to stay on example.com

jindrich.bar avatar

Hello and thank you for your interest in this Actor!

This is the default behavior of Web Scraper, i.e., by default; it only follows the links targeting the same domain as at least one of the start URLs. See my example run on my personal blog - while I have links to other websites (my GitHub profile, LinkedIn, or Apify homepage), the Actor doesn't visit these. To change this, you can use the Include globs input option - using this, you can set custom URL patterns to crawl.

I'll close this issue now, but feel free to ask additional questions if you have any. Cheers! (and sorry for the wait).