falkenbach / actor-glassdoor-jobs

Scrapes job data from Glassdoor. Fast and free Glassdoor Scraper to extract all data from job listings including salaries, companies, and reviews.
https://apify.com/alexey/glassdoor-jobs-scraper
Apache License 2.0
14 stars 7 forks source link

Job results do not include "Geo". #31

Closed LiamJDesmond84 closed 2 years ago

LiamJDesmond84 commented 2 years ago

jobLocation: 'Warren, MI', url: 'https://www.glassdoor.com/job-listing/

Per this page: https://apify.com/alexey/glassdoor-jobs-scraper#scraped-glassdoor-jobs

The example included geolocation data, but there are none in the results. Do I have to set this up differently to get them?

zpelechova commented 2 years ago

Hey, I ran it and got the jobLocation ok, can you post the url of your run maybe?

LiamJDesmond84 commented 2 years ago

Hey, I can get the jobLocation just fine, just not the GeoLocation inside of it which is what I'm looking for. I'm using the same code that was given here:

https://apify.com/alexey/glassdoor-jobs-scraper/api#glassdoor-jobs-salaries-companies-and-reviews-scraper

const input = {
    "startUrl": "",
    "maxResults": 4,
    "query": "Java Developer",
    "location": "Seattle",
    "locationstate": "WA",
    "proxy": {
        "useApifyProxy": true
    }
};

(async () => {
    // Run the actor and wait for it to finish
    const run = await client.actor("alexey/glassdoor-jobs-scraper").call(input);

    // Fetch and print actor results from the run's dataset (if any)
    console.log('Results from dataset');
    const { items } = await client.dataset(run.defaultDatasetId).listItems();
    items.forEach((item) => {
        console.dir(item);
    });
})();```

What I'm looking for is this:

```},
    "geo": {
      "@type": "GeoCoordinates",
      "latitude": "50.0833",
      "longitude": "14.4667"
    }