scrapy / scrapely

A pure-python HTML screen-scraping library
1.86k stars 273 forks source link

fix extra required attributes for variants by applying extra required attributes on item descriptor #9

Closed kalessin closed 12 years ago

kalessin commented 12 years ago

extra required attributes must be added in item descriptor. Now that each template has its own descriptor, it is possible. Also, this way it is fixed the case when extra required attribute comes in a variant (added test). Also, avoid different tests to use the same descriptor instance.