1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "targets": [
9 "example.com",
10 "apify.com",
11 "github.com",
12 "wikipedia.org",
13 "openai.com",
14 "google.com",
15 "youtube.com",
16 "facebook.com",
17 "microsoft.com",
18 "amazon.com",
19 "netflix.com",
20 "spotify.com",
21 "shopify.com",
22 "adobe.com",
23 "salesforce.com",
24 "cloudflare.com",
25 "mozilla.org",
26 "nytimes.com",
27 "cnn.com",
28 "reddit.com",
29 "stackoverflow.com",
30 "paypal.com",
31 "ibm.com",
32 "oracle.com",
33 "nvidia.com",
34 "tesla.com",
35 "walmart.com",
36 "target.com",
37 "ebay.com",
38 "pinterest.com",
39 "quora.com",
40 "imdb.com",
41 "medium.com",
42 "wordpress.org",
43 "nih.gov",
44 "theguardian.com",
45 "forbes.com",
46 "bloomberg.com",
47 "reuters.com",
48 "yelp.com",
49 "tripadvisor.com",
50 "booking.com",
51 "airbnb.com",
52 "canva.com",
53 "zoom.us",
54 "dropbox.com",
55 "slack.com",
56 "hubspot.com",
57 "squarespace.com",
58 "wix.com",
59 ] }
60
61
62run = client.actor("maximedupre/moz-scraper").call(run_input=run_input)
63
64
65print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
66for item in client.dataset(run["defaultDatasetId"]).iterate_items():
67 print(item)
68
69