1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "startUrls": [
10 "https://www.glassdoor.com/Overview/Working-at-Elastic-EI_IE751551.11,18.htm",
11 "https://www.glassdoor.com/Reviews/Elastic-Reviews-E751551.htm",
12 "https://www.glassdoor.com/Reviews/Elastic-Reviews-E751551.htm?filter.iso3Language=eng&filter.employmentStatus=REGULAR&filter.employmentStatus=PART_TIME&filter.searchCategory=CULTURE",
13 "https://www.glassdoor.com/Interview/Elastic-Interview-Questions-E751551.htm",
14 "https://www.glassdoor.com/Interview/Elastic-Marketing-Assistant-Interview-Questions-EI_IE751551.0,7_KO8,27.htm#InterviewReview_76289952",
15 "https://www.glassdoor.com/Job/elastic-jobs-SRCH_KO0,7.htm",
16 "https://www.glassdoor.com/job-listing/federal-account-executive-nga-elastic-JV_IC1138213_KO0,29_KE30,37.htm?jl=1008611278488&pos=107&ao=1136043&s=58&guid=000001884d59c10aafb263d8cfe0037f&src=GD_JOB_AD&t=SR&vt=w&ea=1&cs=1_cd6d3492&cb=1684924907959&jobListingId=1008611278488&jrtk=3-0-1h16ljg9dk6fr801-1h16ljg9ti9j2800-c74621bdf8ed430d-&ctt=1684925008345",
17 "https://www.glassdoor.com/Salary/Elastic-Software-Engineer-Salaries-E751551_D_KO8,25.htm",
18 ],
19 "search": "agency",
20 "maxItems": 20,
21 "endPage": 1,
22 "extendOutputFunction": "($) => { return {} }",
23 "customMapFunction": "(object) => { return {...object} }",
24 "proxy": { "useApifyProxy": True },
25}
26
27
28run = client.actor("epctex/advanced-glassdoor-scraper").call(run_input=run_input)
29
30
31print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
32for item in client.dataset(run["defaultDatasetId"]).iterate_items():
33 print(item)
34
35