python-xextract icon indicating copy to clipboard operation
python-xextract copied to clipboard

Group.children as dict

Open starenka opened this issue 2 years ago • 0 comments

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?

starenka avatar Jun 09 '22 12:06 starenka