Package gopenflights offers a library for easy access to openflights data.