Aviasales hot tickets scraper
by volarai
Scrapes hot tickets prices from Aviasales. Extracts destination, price, discount, and dates. Uses Selenium. Saves data to Apify dataset. Hot ticket p...
Opens on Apify.com
About Aviasales hot tickets scraper
Scrapes hot tickets prices from Aviasales. Extracts destination, price, discount, and dates. Uses Selenium. Saves data to Apify dataset. Hot ticket page example for Moscow: https://www.aviasales.ru/?params=MOW1&service=hottickets&marker=70279
What does this actor do?
Aviasales hot tickets scraper is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.
Key Features
- Cloud-based execution - no local setup required
- Scalable infrastructure for large-scale operations
- API access for integration with your applications
- Built-in proxy rotation and anti-blocking measures
- Scheduled runs and webhooks for automation
How to Use
- Click "Try This Actor" to open it on Apify
- Create a free Apify account if you don't have one
- Configure the input parameters as needed
- Run the actor and download your results
Documentation
English ### Project Summary This project is an Apify actor that scrapes hot ticket offers from Aviasales using Selenium and Chrome WebDriver. It extracts discounted flight ticket information from the Aviasales site, processes the data, and stores the results in the Apify dataset. ### How to Use 1. Install dependencies: - Python 3.8+ required - Install required packages: bash pip install selenium apify-client - Ensure Chrome browser is installed and compatible ChromeDriver is available. 2. Configure input: - The actor expects an input JSON file with the following fields: - departure_city (string): IATA code for the departure city (e.g., "KZN", "LED") - language (string): Language/market code ("ru", etc.) 3. Run the script locally: bash python src/main.py Or deploy on Apify platform. ### What the Script Does - Initializes as an Apify Actor and gets input (departure city, language) - Builds the Aviasales URL for hot tickets with the specified parameters - Launches a Selenium Chrome WebDriver (headless mode supported) - Enqueues the target URL for processing - Scrapes hot ticket offers, extracting for each ticket: - Destination city (city of arrival) - Comments (if present) - Price and old (original) price - Flight date, start & end time, duration - Calculates discount percentage - Pushes the structured data to an Apify dataset ### Expected Input Example json { "departure_city": "KZN", "language": "ru" } Note: Currently, the extraction and output of offers works only for the Russian language. ### Output Each extracted ticket will be stored as a record with fields: - City: destination city (город назначения) - Comment: special notes (if available) - price: current price - old_price: original price - discount: discount percentage - date, time_start, time_end, duration: timing info Results are saved to the default Apify dataset and printed to the console during execution. --- ## Русский ### Описание проекта Этот проект — Apify-актор, который с помощью Selenium и Chrome WebDriver парсит горячие предложения авиабилетов с сайта Aviasales. Скрипт собирает данные о скидках на билеты, обрабатывает их и сохраняет в датасет Apify. ### Как использовать 1. Установите зависимости: - Требуется Python 3.8+ - Установите библиотеки: bash pip install selenium apify-client - Убедитесь, что у вас установлен браузер Chrome и подходящий ChromeDriver. 2. Настройте входные параметры: - Скрипт ожидает JSON-файл с такими полями: - departure_city (строка): IATA-код города отправления (например, "KZN", "LED") - language (строка): код языка/рынка ("ru" и др.) 3. Запуск скрипта локально: bash python src/main.py Или разверните на платформе Apify. ### Описание работы скрипта - Инициализация актора Apify и получение входных параметров - Формирование целевого URL для горячих билетов Aviasales - Запуск Selenium Chrome WebDriver (поддерживается headless режим) - Добавление URL в очередь обработки - Сбор данных о билетах: - Город назначения - Комментарии (если есть) - Цена и старая (оригинальная) цена - Дата, время вылета и прилёта, длительность - Расчёт процента скидки - Сохранение структурированных данных в датасет Apify ### Пример входных данных json { "departure_city": "KZN", "language": "ru" } Примечание: В настоящее время вывод предложений работает только на русском языке. ### Выходные данные Каждая запись содержит: - City: город назначения - Comment: примечания (если есть) - price: текущая цена - old_price: оригинальная цена - discount: процент скидки - date, time_start, time_end, duration: информация о времени Результаты сохраняются в датасет Apify и выводятся в консоль. ---
Categories
Common Use Cases
Market Research
Gather competitive intelligence and market data
Lead Generation
Extract contact information for sales outreach
Price Monitoring
Track competitor pricing and product changes
Content Aggregation
Collect and organize content from multiple sources
Ready to Get Started?
Try Aviasales hot tickets scraper now on Apify. Free tier available with no credit card required.
Start Free TrialActor Information
- Developer
- volarai
- Pricing
- Paid
- Total Runs
- 2,477
- Active Users
- 4
Related Actors
Google Maps Reviews Scraper
by compass
Google Maps Scraper
by compass
Tripadvisor Reviews Scraper
by maxcopell
Apartments.com Scraper 🏡
by epctex
Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.
Learn more about ApifyNeed Professional Help?
Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.
Trusted by millions | Money-back guarantee | 24/7 Support