Skip to content

Group.children as dict #8

Description

@starenka

as every Group child needs to specify its name and Group returns a dict, it seems more convenient to specify children as dict rather than list, f.e:

Group(css='section#articles-list.block-articles', children={'url':Url(css='figure.headline-image a'), ]).parse(response.text)

instead of current

Group(css='section#articles-list.block-articles', children=[Url(name='url', css='figure.headline-image a'), ]).parse(response.text)

Thoughts?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions