Skip to main content

Extract list

Read repeated items (product cards, search results, list entries) into a table: one row per item, one column per field found inside it.

Command in the Browser toolkit · id ooa.browser/extract_list · 7 inputs (1 required), 2 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
Captured objectDictionaryNoA captured item (one card or row): every element like it is read.
SelectorStringNoSelector of the repeated item, used when no captured item is given.
FieldsDictionaryYesColumn name to a selector inside the item; add @attribute to read an attribute (a@href); an empty selector reads the item's own text.
Maximum itemsNumberNoRead at most this many items (all when empty).
Wait up to (milliseconds)NumberNo30000How long to wait for the element, in milliseconds.
SessionStringNobrowserSession name.
WindowDictionaryNoWhich window to act in. Leave empty to use the session's current tab. {"source": "browser", "title": "Invoice * - Shop", "title_match": "wildcard", "url": "...", "url_match": "contains", "browser": "edge"} switches to the first open tab whose title and/or address matches (also in attached browsers, and in one listening on port 9222); {"source": "variable", "variable": "session name"} uses that browser session; {"source": "application", "title": "..."} names a desktop window, which works only when it is a window of an attached browser. Matches: wildcard (default for the title), contains (default for the address), equals or regex; text matches ignore case. Values may use variables.

Outputs​

OutputTypeWhat it is
tableTableOne row per item.
countNumberNumber of items.