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 "https://ahrefs.com/websites/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 ] }
35
36
37run = client.actor("maximedupre/ahrefs-free-website-stats-scraper").call(run_input=run_input)
38
39
40print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
41for item in client.dataset(run["defaultDatasetId"]).iterate_items():
42 print(item)
43
44