hi, Very happy to see your project, I am doing some data analysis research, in which this tool is sooooo helpful and needed,
But I got some trouble and errors in using it, by following your instruction, , Can you pls kindly help , and advise how can I correctly use it and fix the problem , errors.
My situation as below:
step 1, install all dependencies,
step 2 , : pip install google-flight-analysis Successfully,
step 3, i use the code as following: ( my file name is: googleFlighs.py )
from google_flight_analysis.scrape import *
if name == "main":
Scrapes Google Flights for round-trip JFK to IST, leave July 15, 2023, return July 25, 2023.
result = Scrape("JFK", "IST", "2023-07-15", "2023-07-25")
# Obtain data + info
flights = result.data # outputs as a Pandas dataframe
origin = result.origin # "JFK"
dest = result.dest # "IST"
date_leave = result.date_leave # "2023-07-15"
date_return = result.date_return # "2023-07-25"
************ out put Error: Traceback (most recent call last):
File "D:\StudyCode\FlightsScrape\googleFlights.py", line 10, in
date_leave = result.date_leave # "2023-07-15"
AttributeError: '_Scrape' object