1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "productUrls": [
10 "https://www.newegg.com/lenovo-14-0/p/1TS-000E-1DEC9",
11 "https://www.newegg.com/asus-16-0-non-touch-screen-intel-core-7-240h-geforce-rtx-5060-laptop-gpu-16gb-memory-512-gb-pcie-ssd-matte-black/p/N82E16834236717",
12 "https://www.newegg.com/hp-14-0-qualcomm-snapdragon-x-x1-26-100-qualcomm-adreno-16gb-memory-512-gb-pcie-ssd/p/2NR-000A-01PK8",
13 ],
14 "categoryUrls": [
15 "https://www.newegg.com/p/pl?d=laptops",
16 "https://www.newegg.com/p/pl?N=100167751&d=laptops&isdeptsrh=1",
17 ],
18 "maxResultsPerScrape": 5,
19 "usePagination": True,
20}
21
22
23run = client.actor("123webdata/newegg-scraper").call(run_input=run_input)
24
25
26print(f"πΎ Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
27for item in client.dataset(run.default_dataset_id).iterate_items():
28 print(item)
29
30