1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "startUrls": [
10 "https://allegro.pl/oferta/procesor-intel-i9-12900k-16-x-3-2-ghz-12375564256",
11 "https://allegro.pl/dzial/moda",
12 "https://allegro.pl/kategoria/komputery",
13 "https://allegro.pl/magazyn-allegro",
14 "https://allegro.pl/uzytkownik/www_comtrade_pl",
15 ],
16 "maxProducts": 30,
17 "searchCategories": ["all"],
18 "searchDomains": ["allegro.pl"],
19}
20
21
22run = client.actor("tri_angle/allegro-fast-product-scraper").call(run_input=run_input)
23
24
25print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
26for item in client.dataset(run["defaultDatasetId"]).iterate_items():
27 print(item)
28
29