
XING Data Extractor
- epctex/xing-scraper
- Modified
- Users 127
- Runs 2.3k
- Created by
epctex
Unleash the power of advanced scraping to gather comprehensive data on companies, jobs, profiles, communities, and groups from XING. Extract job descriptions, images, company details, summarizations and more. Customize your search terms, filters, and mappings for precision.
To run the code examples, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token. For a more detailed explanation, please read about running Actors via the API in Apify Docs.
import { ApifyClient } from 'apify-client';
// Initialize the ApifyClient with API token
const client = new ApifyClient({
token: '<YOUR_API_TOKEN>',
});
// Prepare Actor input
const input = {
"search": "product",
"location": "berlin",
"radius": 100,
"startUrls": [
"https://www.xing.com/gruppen/freelance",
"https://www.xing.com/pages/spectrumag",
"https://www.xing.com/profile/Marko_RoeperGrewe",
"https://www.xing.com/search/in/jobs?facets%5B%5D=discipline&keywords=product&location=berlin&nrs=1&page=2&radius=10§ion=jobs"
],
"maxItems": 20,
"endPage": 1,
"extendOutputFunction": ($) => { return {} },
"customMapFunction": (object) => { return {...object} },
"proxy": {
"useApifyProxy": true
}
};
(async () => {
// Run the Actor and wait for it to finish
const run = await client.actor("epctex/xing-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);
});
})();