1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "productUrls": [
10 "https://www.pricecharting.com/game/nintendo-64/zelda-ocarina-of-time",
11 "https://www.pricecharting.com/game/nintendo-64/super-mario-64",
12 "https://www.pricecharting.com/game/nintendo-64/007-goldeneye",
13 ],
14 "categoryUrls": [
15 "https://www.pricecharting.com/console/nintendo-64?view=table",
16 "https://www.pricecharting.com/search-products?q=nintendo+64&type=prices&view=table",
17 "https://www.pricecharting.com/console/nintendo-64?genre-name=systems&view=table",
18 ],
19 "maxResultsPerScrape": 5,
20 "usePagination": True,
21}
22
23
24run = client.actor("123webdata/pricecharting-scraper").call(run_input=run_input)
25
26
27print(f"๐พ Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
28for item in client.dataset(run.default_dataset_id).iterate_items():
29 print(item)
30
31