1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "search",
10 "locations": ["Portland, OR"],
11 "services": [
12 "furniture assembly",
13 "tv mounting",
14 ],
15 "profileInputs": [
16 "https://www.taskrabbit.com/api/v3/rabbits/1883135",
17 "https://www.taskrabbit.com/api/v3/rabbits/1883135/reviews?page=2",
18 "https://www.taskrabbit.com/profile/glenn-w--3",
19 "https://www.taskrabbit.com/locations/portland",
20 "https://www.taskrabbit.com/locations/portland/lawn-mowing",
21 "https://www.taskrabbit.com/locations",
22 "https://www.taskrabbit.com/sitemaps/www.taskrabbit.com/geo_marketing_pages.xml.gz",
23 ],
24 "urls": [
25 "https://www.taskrabbit.com/api/v3/rabbits/1883135",
26 "https://www.taskrabbit.com/api/v3/rabbits/1883135/reviews?page=2",
27 "https://www.taskrabbit.com/profile/glenn-w--3",
28 "https://www.taskrabbit.com/locations/portland",
29 "https://www.taskrabbit.com/locations/portland/lawn-mowing",
30 "https://www.taskrabbit.com/locations",
31 "https://www.taskrabbit.com/sitemaps/www.taskrabbit.com/geo_marketing_pages.xml.gz",
32 ],
33 "maxItems": 20,
34 "includeProfiles": True,
35 "includeReviews": False,
36 "maxReviewsPerTasker": 20,
37 "includeCityReviews": False,
38 "scrapeServiceInfo": False,
39 "maxTaskersPerPage": 6,
40 "proxyConfiguration": { "useApifyProxy": True },
41 "incrementalMode": False,
42 "emitUnchanged": False,
43 "emitExpired": False,
44 "maxNotifyListings": 50,
45}
46
47
48run = client.actor("abotapi/taskrabbit-tasker-scraper").call(run_input=run_input)
49
50
51print(f"๐พ Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
52for item in client.dataset(run.default_dataset_id).iterate_items():
53 print(item)
54
55