1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "search",
10 "searchTerms": ["Sherine"],
11 "urls": [
12 "https://play.anghami.com/artist/422",
13 "https://play.anghami.com/artist/422?page=2",
14 "https://play.anghami.com/song/108861",
15 "https://play.anghami.com/album/1",
16 "https://play.anghami.com/playlist/just-sherine-abdel-wahab-2050981",
17 "https://play.anghami.com/tag/1",
18 "https://play.anghami.com/search/Sherine",
19 ],
20 "kinds": [],
21 "excludePodcasts": False,
22 "excludeAudiobooks": False,
23 "explicitOnly": False,
24 "fetchDetails": False,
25 "maxItems": 20,
26 "proxy": { "useApifyProxy": True },
27 "incrementalMode": False,
28 "emitUnchanged": False,
29 "emitExpired": False,
30 "ignoreFieldsForChanges": [],
31}
32
33
34run = client.actor("abotapi/anghami-catalog-scraper").call(run_input=run_input)
35
36
37print(f"๐พ Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
38for item in client.dataset(run.default_dataset_id).iterate_items():
39 print(item)
40
41