Glassdoor score monitor
You can use CronDog to monitor a company's Glassdoor score, and receive notifications when the score reaches a certain threshold.
1. Set up HTTP request
After signing into the CronDog dashboard, click New task on the All Tasks page. The task creation form opens with Request, Schedule, and Notifications sections.
Under the Request and Schedule sections, provide the following values:
| Field | Value | Notes |
|---|---|---|
| Task Name | Apple Glassdoor score alert | The name of the task (optional) |
| URL | https://www.glassdoor.com/Reviews/Apple-Reviews-E1138.htm | Apple's Glassdoor URL |
| Request Method | GET | |
| Request Headers | None | No headers are needed |
| Schedule | Every 1 day | The task will run once every day |
With this setup, you are telling the task to issue a GET request to Apple's Glassdoor page once every day.
2. Set up notification
Now it's time to tell CronDog when to notify us when Apple's Glassdoor score changes. For example, an Apple investor might want to be notified when the score drops below 3.8, let's see how to set up this:
- Find the CSS selector that helps CronDog identify the Glassdoor score HTML element. Go to Apple's Glassdoor website (
https://www.glassdoor.com/Reviews/Apple-Reviews-E1138.htm), right-click on the score section, and clickInspect Element: - In the developer console, you can see the class name of the element:
- Remember this value:
.v2__EIReviewsRatingsStylesV2__ratingNum, we'll use it in next step.
Next, let us create an email notification. Under the Notifications section, click Add next to the Email label. The Add email notification dialog opens.
Then provide the following values:
| Field | Value | Notes |
|---|---|---|
| Source | Response Body (HTML) | Parse the response body as HTML elements. |
| CSS Selector | .v2__EIReviewsRatingsStylesV2__ratingNum | The CSS selector for Glassdoor company score HTML element, you can find this by inspecting Glassdoor's webpage, via your browser's developer tool. |
| Comparison | less than (number) | Check if element .v2__EIReviewsRatingsStylesV2__ratingNum text field is less than the configured value. |
| Value | 3.8 | |
| To | [email protected] | The email address to receive notification when condition evaluates to true |
Click Save. The new notification appears under the Notifications section. Now that we have an email condition configured, here's what happens behind the scenes when the task runs each time:
- CronDog sends HTTP GET request to
https://www.glassdoor.com/Reviews/Apple-Reviews-E1138.htm - CronDog gets response from Glassdoor, and tries to extract HTML element via CSS selector
.v2__EIReviewsRatingsStylesV2__ratingNum - CronDog gets the HTML element that carries Apple's score, and extract the text field from the element, this is equivalent with calling
$('.v2__EIReviewsRatingsStylesV2__ratingNum').text()in the JS world - CronDog checks if the extracted text value is less than the configured value
3.8 - If so, send email to
[email protected]
3. Save & Test task
Now your task is ready. Click Create at the bottom of the task creation form. After the task is created, CronDog opens the task detail page with the status set to Active.
Now you can trigger a test to ensure your task is configured properly. You might need to increase the configured value (e.g. 4.5) so the notification condition evaluates to true. If everything goes well, you should receive an email notification. Great, now we can revert the test value to 3.8 - the one we want to monitor.
You might be wondering, what if Glassdoor page and its HTML elements changed, and makes the CSS selector invalid? That's a good point! We can set up a null checking notification so we are notified when things changed. Let us add a new notification, using the same CSS Selector, but with is null comparator:
Click Save to complete the notification setup. Now we are more confident that our Glassdoor score monitor will be working properly. Congratulations! You've successfully created a Glassdoor company score monitor!
