1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "startUrls": [{ "url": "https://appsumo.com/marketing/social-media/" }],
10 "subcategory": "social-media",
11 "keywords": ["social media"],
12 "maxItems": 10,
13 "scrapeListingDetails": False,
14 "scrapeReviews": False,
15 "includeFounderDetails": False,
16 "detailConcurrency": 5,
17 "proxyConfiguration": {
18 "useApifyProxy": True,
19 "apifyProxyGroups": ["RESIDENTIAL"],
20 },
21}
22
23
24run = client.actor("datascrapers/appsumo-scraper").call(run_input=run_input)
25
26
27print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
28for item in client.dataset(run.default_dataset_id).iterate_items():
29 print(item)
30
31