1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "markets": [
10 "ng",
11 "ke",
12 ],
13 "searchQueries": [],
14 "categoryPaths": ["/phones-tablets/"],
15 "botContact": "",
16 "maxRequestsPerMinute": 120,
17 "startUrls": [
18 { "url": "https://www.jumia.com.ng/catalog/?q=iphone+15" },
19 { "url": "https://www.jumia.com.ng/phones-tablets/" },
20 ],
21 "maxItems": 100,
22 "maxPagesPerQuery": 1,
23 "includeReviews": True,
24 "maxReviewsPerProduct": 20,
25 "proxy": { "useApifyProxy": False },
26}
27
28
29run = client.actor("ahmed_jasarevic/jumia-scraper").call(run_input=run_input)
30
31
32print(f"πΎ Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
33for item in client.dataset(run.default_dataset_id).iterate_items():
34 print(item)
35
36