1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "search": "rock",
10 "startUrls": [
11 "https://www.trueachievements.com/news?search=game",
12 "https://www.trueachievements.com/n52218/way-to-the-woods-game-pass",
13 "https://www.trueachievements.com/game/Monster-Energy-Supercross-4",
14 "https://www.trueachievements.com/xbox-series",
15 "https://www.trueachievements.com/series/Call-of-Duty?distinct=true&dlcsetting=AllDLC",
16 "https://www.trueachievements.com/publisher/Electronic-Arts/games",
17 "https://www.trueachievements.com/xbox-game-pass/games",
18 "https://www.trueachievements.com/games.aspx",
19 "https://www.trueachievements.com/genre/Simulation-Racing",
20 "https://www.trueachievements.com/searchresults.aspx?search=game",
21 ],
22 "maxItems": 20,
23 "endPage": 1,
24 "extendOutputFunction": "($) => { return {} }",
25 "customMapFunction": "(object) => { return {...object} }",
26 "proxy": { "useApifyProxy": True },
27}
28
29
30run = client.actor("epctex/trueachievements-scraper").call(run_input=run_input)
31
32
33print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
34for item in client.dataset(run["defaultDatasetId"]).iterate_items():
35 print(item)
36
37