1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "targets": [
9 "wikipedia.org",
10 "github.com",
11 "openai.com",
12 "microsoft.com",
13 "apple.com",
14 "amazon.com",
15 "google.com",
16 "youtube.com",
17 "facebook.com",
18 "instagram.com",
19 "linkedin.com",
20 "netflix.com",
21 "spotify.com",
22 "shopify.com",
23 "adobe.com",
24 "salesforce.com",
25 "cloudflare.com",
26 "mozilla.org",
27 "nytimes.com",
28 "cnn.com",
29 "bbc.com",
30 "reddit.com",
31 "stackoverflow.com",
32 "ebay.com",
33 "walmart.com",
34 "target.com",
35 "paypal.com",
36 "oracle.com",
37 "ibm.com",
38 "zoom.us",
39 "canva.com",
40 "tiktok.com",
41 ] }
42
43
44run = client.actor("maximedupre/semrush-free-website-stats-scraper").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