flight-finder

flight-finder

The agent is designed to search for flights, summarize options, and provide recommendations based on user input.

AGENTSAITRAVELApify

Flight Search Agent

This project implements a flight search agent using the CrewAI framework and Apify Actors. The agent is designed to search for flights, summarize options, and provide recommendations based on user input.

Overview

The Flight Search Agent utilizes the Apify SDK to interact with web services and gather flight data. It leverages the CrewAI framework to manage agents and tasks, allowing for efficient processing and summarization of flight options.

Features

  • Flight Search: The agent can search for flights between specified origins and destinations on given dates using the Kayak tool.
  • Flight Summarization: It summarizes the search results and provides recommendations to users.
  • Environment Configuration: The agent uses environment variables for sensitive information like API keys.
  • Asynchronous Execution: The main function is asynchronous, allowing for efficient web scraping and data processing.

Getting Started

Prerequisites

  • Python 3.12 or higher
  • Required packages listed in requirements.txt

Installation

  1. Clone the repository:

    1git clone https://github.com/Arindam200/flight-finder
    2cd flight-finder
  2. Install the required packages:

    pip install -r requirements.txt
  3. Set up your environment variables. Create a .env file based on the .env.example template:

    cp .env.example .env
  4. Fill in your API keys in the .env file.

Running the Agent

To run the agent, use the following command:

apify run

Input Schema

The agent expects input in the following JSON format:

1{
2    "query": "Analyze the posts of the @openai and @googledeepmind and summarize me current trends in the AI.",
3    "modelName": "gpt-4o-mini",
4    "debug": true,
5    "BROWSERBASE_API_KEY": "your browserbase api kei",
6    "BROWSERBASE_PROJECT_ID": "your browserbase project id"
7}

Output

The agent outputs the flight search results in a structured format, which includes:

  • Origin
  • Destination
  • Date
  • Results (detailed flight options)

Tools Used

  • CrewAI: A framework for building AI agents.
  • Apify SDK: A toolkit for web scraping and automation.
  • Kayak API: For searching flight options.
  • Browserbase: For loading web pages and extracting content.

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgments

  • Apify for providing the SDK and platform for building web scrapers.
  • CrewAI for the agent framework.

Frequently Asked Questions

Is it legal to scrape job listings or public data?

Yes, if you're scraping publicly available data for personal or internal use. Always review Websute's Terms of Service before large-scale use or redistribution.

Do I need to code to use this scraper?

No. This is a no-code tool — just enter a job title, location, and run the scraper directly from your dashboard or Apify actor page.

What data does it extract?

It extracts job titles, companies, salaries (if available), descriptions, locations, and post dates. You can export all of it to Excel or JSON.

Can I scrape multiple pages or filter by location?

Yes, you can scrape multiple pages and refine by job title, location, keyword, or more depending on the input settings you use.

How do I get started?

You can use the Try Now button on this page to go to the scraper. You’ll be guided to input a search term and get structured results. No setup needed!