1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "startUrls": ["https://www.theknot.com/marketplace/wedding-photographers-new-york-ny"],
10 "maxListings": 30,
11 "maxPages": 1,
12 "maxItems": 200,
13 "maxReviewsPerVendor": 5,
14 "maxRequestsPerCrawl": 250,
15 "maxConcurrency": 12,
16 "minConcurrency": 12,
17 "requestDelayMs": 200,
18 "requestHandlerTimeoutSecs": 60,
19 "proxy": { "useApifyProxy": False },
20}
21
22
23run = client.actor("ahmed_jasarevic/theknot-scraper").call(run_input=run_input)
24
25
26print(f"๐พ Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
27for item in client.dataset(run.default_dataset_id).iterate_items():
28 print(item)
29
30