1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "browse",
10 "queries": ["horror"],
11 "creators": ["gbpatch"],
12 "jams": ["gmtk-2024"],
13 "urls": [
14 "https://itch.io/games/top-rated/genre-puzzle",
15 "https://itch.io/games/genre-puzzle?page=2",
16 "https://itch.io/games/tag-horror",
17 "https://itch.io/games/genre-puzzle/tag-pixel-art",
18 "https://itch.io/games/free",
19 "https://itch.io/games/platform-web",
20 "https://itch.io/games/in-jam",
21 "https://itch.io/games/new-and-popular",
22 "https://itch.io/games/newest/genre-puzzle",
23 "https://itch.io/search?q=horror",
24 "https://gbpatch.itch.io/our-life",
25 "https://gbpatch.itch.io/our-life/comments",
26 "https://gbpatch.itch.io/our-life/devlog",
27 "https://gbpatch.itch.io/",
28 "https://itch.io/profile/gbpatch",
29 "https://itch.io/jam/gmtk-2024",
30 "https://itch.io/jam/gmtk-2024/results",
31 "https://itch.io/jam/gmtk-2024/entries",
32 "https://itch.io/jams",
33 "https://itch.io/jams/past",
34 ],
35 "proxy": { "useApifyProxy": True },
36 "incrementalMode": False,
37 "emitUnchanged": False,
38 "emitExpired": False,
39 "ignoreFieldsForChanges": [],
40}
41
42
43run = client.actor("abotapi/itch-io-scraper").call(run_input=run_input)
44
45
46print(f"πΎ Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
47for item in client.dataset(run.default_dataset_id).iterate_items():
48 print(item)
49
50