Search across multiple markets¶
Create one EventimClient per market and run the same query against each.
Solution¶
from pyventim import EventimClient, EventimMarket
markets = {
"Germany": EventimMarket.GERMANY,
"Sweden": EventimMarket.SWEDEN,
"Norway": EventimMarket.NORWAY,
}
for country, market in markets.items():
client = EventimClient(market)
print(f"\n=== {country} ===")
for product_group in client.product_groups(
categories=["Concerts"],
search_term="Metallica",
page_limit=1,
):
print(product_group.name, product_group.start_date)
Notes¶
- Each
EventimClientinstance is independent — they do not share any state or rate-limit budget. - Results will differ per market because each country has its own event catalogue and pricing.
- Instantiating a client is cheap; you can create them inside loops without performance concerns.