Scrape elements by CSS selector in Chrome
When the data is not in a table or list, CSS Selector mode extracts every element that matches a selector you type, such as .product-title, and exports the tag and text content to CSV. LightCube Data Extractor also has Pick on page to help you choose an element. Selector mode is free for 3 uses per day.
Do this in one click with LightCube Data Extractor, a free Chrome extension. No account needed.
Add to Chrome, free ↗Step by step
- Open the page and run the extension.
- Choose Selector.
- Type a selector such as
.priceor use Pick on page and click an example element. - Run it and check the preview: one row per matching element with Tag and Content columns.
- Click CSV or Copy.
Selector examples
| Goal | Selector |
|---|---|
| All second-level headings | h2 |
| Items with a class | .product-title |
| Links inside the main article | article a |
| Table cells in column 2 | td:nth-child(2) |
| Elements with an attribute | [data-price] |
What is captured
The element tag and its visible text (up to 500 characters per element). Attributes such as image src are not exported in this mode.
Several fields per item
Run one selector per field, for example titles then prices, and paste the columns side by side. Check that row counts match before you rely on alignment.
FAQ
- How many selector runs are free?
- 3 per day. Tables, Links and Lists have no daily cap.
- Do I need to know CSS?
- Pick on page helps, and the selector guide covers the basics.
- Can it read attributes like href?
- Use Links mode for link URLs; Selector mode exports text.
Related guides
Updated 2026-11-11.