moving variables inside functions to avoid globals and use them on test
moving variables inside functions to avoid globals and use them on test

cristobal-io/aviation-scraper,cristobal-io/aviation-scraper,cristobal-io/aviation-scrapper,cristobal-io/aviation-scrapper