eomatch.finder.base.BaseMUFinder.run_scrappi

eomatch.finder.base.BaseMUFinder.run_scrappi#

BaseMUFinder.run_scrappi(query: dict, context: dict | None = None) scrappi.ProductItemSet[source]#

Execute a single scrappi query and return the matching products.

If the query returns no products an empty ProductItemSet is returned rather than None. Results are sorted by start_time before being returned.

Parameters:
  • query – scrappi query dict (keys depend on the collection type).

  • context – optional ScrappiContext; defaults to ScrappiContext().

Returns:

sorted ProductItemSet of matching products.