Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brunojppb/airport-crawler
Simple and powerful CLI app to get worldwide airport information in JSON format
https://github.com/brunojppb/airport-crawler
airport cli crawler ruby
Last synced: 25 days ago
JSON representation
Simple and powerful CLI app to get worldwide airport information in JSON format
- Host: GitHub
- URL: https://github.com/brunojppb/airport-crawler
- Owner: brunojppb
- Created: 2016-12-01T21:06:15.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-04-12T05:44:10.000Z (over 1 year ago)
- Last Synced: 2023-05-05T14:51:28.064Z (over 1 year ago)
- Topics: airport, cli, crawler, ruby
- Language: Ruby
- Homepage:
- Size: 137 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Airport Crawler
A simple HTML Parser for grabbing the list of airports available in the [World Airport Codes website](https://www.world-airport-codes.com/)
#### Requirements
- Ruby 2.2 or greater### How to
#### Download dependencies
```sh
$bundle install
```#### Run
```sh
$ruby airport_crawler.rb
```#### Result
It will generate a `.JSON` file with all airports (the ones with IATA code). The file is optimized to get a small size and be embedded in your app (around 700 KB). You can change the code to generate a fancier output if you want.```js
[
/* IATA;AirportName;City;Country */
"ATT;Atmautluak;Atmautluak;United States"
]
```