1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "products": ["https://www.newegg.com/amd-ryzen-5-7600x-ryzen-5-7000-series-raphael-zen-4-socket-am5/p/N82E16819113770"],
10 "categories": [{
11 "input": "https://www.newegg.com/p/pl?N=100006676",
12 "start_page": 1,
13 "num_pages": 3,
14 }],
15}
16
17
18run = client.actor("antonionduarte/newegg-scraper").call(run_input=run_input)
19
20
21print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
22for item in client.dataset(run["defaultDatasetId"]).iterate_items():
23 print(item)
24
25