File size: 561 Bytes
aca2bf0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from serpapi import GoogleSearch
import json

def get_restaurant_info(query):
    params = {
        'q': query,
        'api_key': 'YOUR_SERP_API_KEY'
    }
    search = GoogleSearch(params)
    results = search.get_dict()
    return results

def get_flight_info(destination):
    # Fetch flight information from a travel API
    return {"flights": [{"flight": "Flight1", "price": "$200"}]}  # Mock Data

def get_hotel_info(destination):
    # Fetch hotel information from a hotel API
    return {"hotels": [{"hotel": "Hotel1", "price": "$100"}]}  # Mock Data