1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "searches": [
10 {
11 "keyword": "Tennis",
12 "country": "US",
13 "language": "",
14 },
15 {
16 "keyword": "Politics news",
17 "country": "FR",
18 "language": "",
19 },
20 {
21 "keyword": "Premier league",
22 "country": "GB",
23 "language": "",
24 },
25 ],
26 "limitMultipleResults": 10,
27}
28
29
30run = client.actor("vulnv/google-news-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