scrapinghub / web-poet

Web scraping Page Objects core library
https://web-poet.readthedocs.io/en/stable/
BSD 3-Clause "New" or "Revised" License
95 stars 15 forks source link

Implement RulesRegistry.resolve #173

Open Gallaecio opened 1 year ago

Gallaecio commented 1 year ago

There is RulesRegistry.page_cls_for_item that gives you the page object class to use given an output item class.

It would be nice to have a method that, in addition to supporting an input item class, can also support an input page object class, i.e. return the page object class itself, or an override if one exists in the rules registry.