Skip to content
This repository was archived by the owner on Mar 16, 2025. It is now read-only.

Group data into separate tables #162

@roniemartinez

Description

@roniemartinez

Output is always flattened into a single list of dictionaries before saving to CSV, JSON, etc.

By grouping data into separate tables, it will be easier to post-process and merge the tables, e.g. connect data from separate pages into one row.

@select(css="...", table="table1")
def function1(element):
    return {"data1": element.text_content()}

@select(css="...", table="table2")
def function2(element):
    return {"data2": element.text_content()}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions