KryptixDocs
06 · Scraper

Smart finder

Let Kryptix find the right selectors from an address, then test them.

Pro plan10 min readUpdated November 2026
On this page

Smart finder#

Instead of hunting for the row selector and the fields by hand, give the finder the page: type its address and let Kryptix open it, or paste its HTML. The finder locates the repeated item box and the title, price, link, image and other fields inside each box, shows them in a preview table, and sends them to the job form with one click. Pasted HTML is never sent anywhere; with an address, Kryptix opens the page on your own computer with a fresh identity, the way Site test does.

  1. Open the target page in your browser. Ctrl+U (page source) → Ctrl+A → Ctrl+C.
  2. In the Add a job… form press Smart finder… and paste into the box. It searches by itself when you paste (or press Find / Ctrl+Enter).
  3. The top candidate is usually the right one; if there are others click one to switch. You can edit the field names in the table and untick a field you do not want.
  4. Send to the form: the row selector and the fields are written into the form and it checks them at once. If the form already has settings it first asks Replace the current settings; a second press applies.

Or let Kryptix open the page for you (needs the working folder with a current kryptix_sdk.py and Python with Playwright, the same as Site test):

  1. In the finder type the Page address (a list page or a product page) and press Open the page and find (or Enter). The box is filled in for you from the last address you used, or from the Site test tab.
  2. Kryptix opens the page with a fresh identity (the identity type and the proxy of the Site test tab), gives late scripts 6 seconds, takes the page as it stands after the scripts ran, puts it in the HTML box and searches by itself. Pages built by JavaScript therefore work without F12 → Copy outerHTML. A line under the buttons says what happened, e.g. “✓ Page opened · HTTP 200 · 3.4 s · 212 KB”; an error page (404, 500…) is shown in amber.
  3. Stop cancels a page that is still opening; closing the window does the same. Only one page is opened at a time.

Example: a book-list page (20 books) gives:

FieldSelectorPreview (first row)
Row selectorarticle.product_pod20 rows
linkh3 > a@hrefcatalogue/book_0/index.html
imageimg.thumbnail@srcmedia/cache/00/xx.jpg
ratingp.star-rating@classstar-rating Three
titleh3 > a@titleA Light in the Attic
pricep.price_color£51.77
stockp.availabilityIn stock

After sending, the command-line equivalent (shown live under the form):

python kryptix_sdk.py bulk pages.txt --rows "article.product_pod" --select "link=h3 > a@href" --select "title=h3 > a@title" --select "price=p.price_color" --out books.csv
How it decides

The row box: at least 3 similar boxes side by side under the same parent. Candidates are ranked by how many boxes there are, how much text they hold, whether they have links and images, and how alike their insides are. Navigation-like places (menus, footers, sidebars, pagination) are pushed down and very weak candidates are not listed. At most 4 candidates are shown. When every box holds a single inner box (li > article.product_pod) the more meaningful inner box becomes the row. In tables whose header sits in tbody the header row is skipped.
Single-item page: when nothing repeats (a product page) or fields sit outside the list, a Single-item page candidate appears: the row selector stays empty and only fields are found (title, price, old price, image, rating, review count, stock, code, brand, description…). The specification table of a product page (<tr><th>UPC</th><td>…</td></tr> rows or a <dl> list; at most 12 rows, labels all different) is not offered as a list: each row becomes a field of the single-item page and is named after its label (upc, price_excl_tax, number_of_reviews…). The same table is also listed as a Key–value table candidate (columns label and value), always last. Tables in a footer or menu are ignored; a row whose name and value repeat another field is skipped. At most 16 fields in all.
Fields: texts found in at least half of the boxes and not identical in every box, links (@href), images (@src), time@datetime and meta[itemprop]@content are taken. The name comes from the class name, itemprop, the tag (h1–h6, del) and the value (currency, date); when none fits it is text, text_2… In tables the column header becomes the name.

Sturdy selectors

Generated class names that change on every site update are kept out of the selector (css-1x2y3z, sc-bdVaJa, item-12345…). For CSS-modules names (ProductCard_title__x9Yz1) the trailing hash is dropped and the prefix is used: [class*="ProductCard_title__"]. State classes (active, odd, even, is-…) are ignored, and so are classes that carry a value: a rating (star-rating One, Two…, rating-4) and a stock state (instock / outofstock, in-stock, sold-out), otherwise the selector would match only the boxes with the same rating. That is why the rating is written p.star-rating@class. The selector grows with ancestor elements until it matches all the boxes and only them; if that is impossible the narrowest superset is chosen and the window warns The row selector isn't an exact match (≈).
A few special cases: a rating kept in the class (star-rating Three) is taken with @class; when a link text is cut with … but the title attribute holds the whole text, @title is used; on a lazy-loaded image whose src is a placeholder, data-src is taken (that attribute is not turned into a full address, it comes back as written); if the box itself is a link, :scope@href is written.

What the preview shows and what it does not

The preview reads the pasted text; it runs no scripts, applies no styles and fetches nothing from the network. The real run reads the live page. So: boxes added by script after the page loads are missing from the preview (the page source is empty; type the page address instead, which reads the page after its scripts ran, or paste the built page with F12 → Elements → right-click the <html> line → Copy → Copy outerHTML); hidden elements do not count as text in a real run; links and images become full addresses in a real run while the preview shows them as written. That the selectors give the same result as the SDK's own reader is checked by automated tests, yet try 2–3 addresses first.

Privacy and limits

The HTML you paste stays in memory only: it is not sent to a server, not written to a file or browser storage, and it is erased when the window closes. The window closes only with Close / Esc; clicking outside does not lose what you pasted. At most 5 MB of HTML; field names start with a letter, use letters / digits / _ and are at most 41 characters; final_url, status, job, ok, error, reason, attempts, seconds, page_url, row_no and stopped are columns of the results file and cannot be field names (the window warns in red). Up to 50 fields are sent to the form; the finder suggests at most 16.

With a page address the page is opened by Kryptix on your computer, not on a server of ours. Only the address is remembered in the window (never the HTML, the proxy or its password); the page source waits in a temporary folder of your computer until Kryptix closes (or a few newer pages have been opened) and is then deleted; leftovers older than an hour are swept at the next page. If the kryptix_sdk.py in the working folder is missing or too old the window says so: use the button under the folder line to put the new one. A page that blocks the identity shows the reason; change the identity type or the proxy on the Site test tab and try again. At most 5 MB of page source is taken.

Try on the live page

Below the preview, Try on the live page opens the address again and reads your selectors (the row selector and the ticked fields, with the names as you edited them) on the real page, the way a real run reads them. For a list it shows the first 5 rows and says how many rows matched (“On the real page: 20 rows found, the first 5 shown.”); for a single-item page it says how many fields were filled. It warns when no row matched (the page may load late, or the selector does not hold on this page) and when rows were found but every field is empty. Editing a name or ticking / unticking a field hides the old result: run it again. It needs the address field filled, even when you pasted the HTML. In this table links and images are full addresses, as in a real run; the preview above shows them as written.

Paste addresses in the job form

Next to Browse… on the URL list line there is Paste…: paste your addresses (one per line), check the count line (“12 addresses · 2 duplicates skipped · 1 invalid line skipped”) and press Save as a file and use it. Kryptix writes <job name>-urls.txt into the working folder (<job name>-adresler.txt in the Turkish window; just urls.txt / adresler.txt when the job name is still empty) and selects it as the URL list. Lines that are not full http(s):// addresses and lines starting with # are left out, duplicates are removed. If a file with that name but other contents already exists the form asks, exactly as with drag-and-drop: replace (the old one is kept as .bak) or save under another name. A .txt file you made yourself still works as before.

Structured data (JSON-LD) hint

If the page carries embedded data (JSON-LD such as Product) the window lists the types in one line. You may not need selectors then: in a script kx.structured_data(page) reads the same data directly (Finding selectors).

Finding selectors#

The row selector and fields are CSS selectors: they say where a value sits on the page. In Chrome right-click the value → Inspect. For the row selector pick the box wrapping one item and write the fields inside that box:

FieldSelectorTakes
Row selectorarticle.product_podone item block
titleh3 athe title (text)
price.price_colorthe price (text)
linkh3 a@hrefthe link (full address)
imageimg@srcthe image (full address)
  • Try small first: 2–3 addresses or --max-pages 2. A page where no field is found counts as failed and is tried again with a new identity.
  • Changed a selector? Add --no-resume, otherwise pages that are done are skipped.
  • Prefer sturdy selectors: generated class names such as .x7f3a change when a site updates. Prefer lasting attributes such as name, aria-label, data-testid and href.
  • Instead of hunting by hand: paste the page's HTML into the Smart finder.
  • Pick by clicking: python kryptix_sdk.py pick ADDRESS (example).
  • If the page embeds its data (JSON-LD, __NEXT_DATA__, OpenGraph), kx.structured_data(page) reads it with no selector.