1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "feeds": [{
10 "sport": "football",
11 "league": "nfl",
12 }],
13 "keywords": [],
14 "matchFields": [
15 "headline",
16 "description",
17 ],
18 "matchMode": "any",
19 "excludeKeywords": [],
20 "caseSensitive": False,
21 "includeArticleBody": False,
22 "onlyNewMatches": False,
23 "maxItems": 10,
24}
25
26
27run = client.actor("getascraper/espn-news-monitor").call(run_input=run_input)
28
29
30print("๐พ Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
31for item in client.dataset(run["defaultDatasetId"]).iterate_items():
32 print(item)
33
34