Link selector

Extraction and navigation

Without child selectors, a Link selector returns the destination URL. With child selectors, Web Scraper follows each URL and extracts data from the destination page using the child selectors.

If clicking the selected element does not change the browser URL and content is loaded with AJAX, use a Pagination selector or an interaction selector instead.

Link types

  1. Link: reads an anchor href.
  2. Text: reads a URL from element text.
  3. Attribute: reads a URL from an element attribute.
  4. Scripted link in attribute: reads a link from script contained in an attribute such as onclick.
  5. Link from any script: reads a destination from page script such as window.location or window.open.

Configuration

  • Selector - CSS selector for the element that contains the destination.
  • Multiple - Enable when several links should be extracted or followed.
  • Link type - Source from which the destination URL is read.

Detail-page structure

item
└── detail_link
    ├── sku
    └── description

Place detail-page fields beneath the Link selector. Fields beside it remain in the listing-item context.

Related