1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "newsSources": [
10 {
11 "url": "https://www.bing.com/news/search?q=%22GTA+6%22&format=rss",
12 "category": "aggregated",
13 "kind": "rss",
14 "keep_all": True,
15 },
16 {
17 "url": "https://www.gamespot.com/feeds/news/",
18 "category": "coverage",
19 "kind": "rss",
20 },
21 {
22 "url": "https://www.eurogamer.net/feed",
23 "category": "coverage",
24 "kind": "rss",
25 },
26 {
27 "url": "https://www.pcgamer.com/rss/",
28 "category": "coverage",
29 "kind": "rss",
30 },
31 {
32 "url": "https://www.polygon.com/rss/index.xml",
33 "category": "coverage",
34 "kind": "rss",
35 },
36 ],
37 "includeMarketOdds": True,
38 "includeHype": True,
39 "youtubeTrailerIds": ["QdBZY2csoPo"],
40 "maxItemsPerSource": 25,
41}
42
43
44run = client.actor("topsail/gta6-tracker").call(run_input=run_input)
45
46
47print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
48for item in client.dataset(run["defaultDatasetId"]).iterate_items():
49 print(item)
50
51