1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "targetUrls": [
10 "https://chat.whatsapp.com/invite/sampleGroupCode",
11 "https://www.whatsapp.com/channel/0029Va4K00494444",
12 ],
13 "phoneNumbers": ["+14155552671"],
14 "searchKeywords": [
15 "artificial intelligence developers",
16 "crypto trading community",
17 ],
18}
19
20
21run = client.actor("khnaami/actor-whatsapp-scraper").call(run_input=run_input)
22
23
24print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
25for item in client.dataset(run.default_dataset_id).iterate_items():
26 print(item)
27
28