How to use API key to call route data for specific countries and years

I want to use API key to call route data for specific countries and times. Can I confirm if I am running it using an app. py file? I tried running app. py using Python, but couldn’t output the desired result. It seems that there are no query conditions set in the code. If I want to implement the function of calling route data for specific countries and times, how do I need to modify the code?
The running process is shown in the following figure, with no result output and continuous operation:

You need to provide at least a portion of the code you are trying to run, and not just the output from it.

1 Like

Thank you for your reply. I have uploaded two codes at the following address.:

Firstly, I would like to confirm with you which of the two codes the data was obtained through. The result I uploaded in my previous post was the result of running a script file named app. py. Secondly, the script file named demo.py can be run and output results. However, the parameter max_pages in the code seems to limit the number of queries. I have tried a maximum value of 10 for max_pages, which can run, but it is difficult for me to know in advance how much max_pages should be set to obtain all the data I want. Thirdly, based on the above two questions, assuming that I want to query the landing aircraft information for a specific date (such as December 31, 2023) and a specific airport (such as Guangzhou Baiyun Airport), how do I need to modify the code, adjust the request parameters sent to AeroAPI to construct the request?

Looking forward to your reply!