Szallas.hu Scraper: Extract Hotel Data Across Europe avatar

Szallas.hu Scraper: Extract Hotel Data Across Europe

Try for free

Pay $3.10 for 1,000 results

Go to Store
Szallas.hu Scraper: Extract Hotel Data Across Europe

Szallas.hu Scraper: Extract Hotel Data Across Europe

vulnv/szallas-hu-scraper-extract-hotel-data-across-europe
Try for free

Pay $3.10 for 1,000 results

Extract hotel data across Europe. Easily gather names, locations, prices, reviews, and amenities in formats like JSON or CSV. Perfect for market analysis or app development, it’s reliable, customizable, and ideal for streamlined data collection.

You can access the Szallas.hu Scraper: Extract Hotel Data Across Europe programmatically from your own JavaScript applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.

1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4// Replace the '<YOUR_API_TOKEN>' with your token
5const client = new ApifyClient({
6    token: '<YOUR_API_TOKEN>',
7});
8
9// Prepare Actor input
10const input = {
11    "start_urls": [
12        {
13            "url": "https://szallas.hu/magyarorszag/"
14        },
15        {
16            "url": "https://szallas.hu/horvatorszag/"
17        },
18        {
19            "url": "https://szallas.hu/romania/"
20        },
21        {
22            "url": "https://szallas.hu/lengyelorszag/"
23        },
24        {
25            "url": "https://szallas.hu/szlovakia/"
26        },
27        {
28            "url": "https://szallas.hu/ausztria/"
29        },
30        {
31            "url": "https://szallas.hu/csehorszag/"
32        }
33    ],
34    "max_number_of_pages": 1
35};
36
37// Run the Actor and wait for it to finish
38const run = await client.actor("vulnv/szallas-hu-scraper-extract-hotel-data-across-europe").call(input);
39
40// Fetch and print Actor results from the run's dataset (if any)
41console.log('Results from dataset');
42console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
43const { items } = await client.dataset(run.defaultDatasetId).listItems();
44items.forEach((item) => {
45    console.dir(item);
46});
47
48// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

Szallas.hu Scraper: Extract Hotel Data Across Europe API in JavaScript

The Apify API client for JavaScript is the official library that allows you to use Szallas.hu Scraper: Extract Hotel Data Across Europe API in JavaScript or TypeScript, providing convenience functions and automatic retries on errors.

Install the apify-client

npm install apify-client

Other API clients include:

Developer
Maintained by Community

Actor Metrics

  • 1 monthly user

  • 1 star

  • >99% runs succeeded

  • Created in Dec 2024

  • Modified 11 hours ago