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
- Link: reads an anchor
href. - Text: reads a URL from element text.
- Attribute: reads a URL from an element attribute.
- Scripted link in attribute: reads a link from script contained in an
attribute such as
onclick. - Link from any script: reads a destination from page script such as
window.locationorwindow.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.