Advanced Sitemap Builder
Create the sitemap
- Open the page where scraping should begin.
- Open browser Developer Tools.
- Open the
Web Scrapertab. - Select
Create sitemap. - Enter a sitemap name and the start URL.
Build listing-page navigation
Build the navigation path before adding fields that depend on it. Category navigation can be added when the scraper must traverse categories or subcategories.
- Check whether the listing uses pagination.
- Create a Pagination selector when additional listing pages must be discovered.
- Navigate into the pagination selector so that the selectors created inside it execute recursively on each pagination page.
- Under
Generate Selectors with AI, selectListing pageto generate selectors for the repeated listing items, or create the selectors manually. - Add any fields that were not generated.
Add detail-page extraction
The Listing page and Single item page generators can be combined at
different levels of the selector tree.
- Create a Link selector and select the item links.
- Navigate into the Link selector in the selector tree.
- Under
Generate Selectors with AI, selectSingle item pageto generate selectors for the linked detail pages, or add the selectors manually. - If a detail page contains another repeated list, such as customer reviews,
select
Listing pagewhile navigated into the Link selector. The generated selectors are added beneath the detail-page branch. - Continue nesting listing and link selectors when the website contains additional levels of repeated items and detail pages.
- Preview the generated selectors on several detail pages.
The Single item page option is available only when you are navigated into a
Link selector. The Listing page generator can also be used within that
linked-page context.
Understand the selector tree
A child selector runs in the page or element context returned by its parent. Place fields beneath the selector that provides the context they require.
_root
└── pagination
└── product
├── name
├── price
└── detail_link
├── sku
├── description
└── review
├── reviewer
├── rating
└── review_text