Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/asifpy/airlinescraper
Web scrapping demo
https://github.com/asifpy/airlinescraper
Last synced: 6 days ago
JSON representation
Web scrapping demo
- Host: GitHub
- URL: https://github.com/asifpy/airlinescraper
- Owner: asifpy
- Created: 2015-10-12T05:22:20.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-25T08:31:03.000Z (about 9 years ago)
- Last Synced: 2024-11-17T01:50:03.543Z (about 2 months ago)
- Language: Python
- Size: 160 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Airline-Scrapper
================NOTE: This script is for demo purpose only.
Programming Club or any person related to it shall not be held responsible for their misuse.- Displays all the airline flights
- Displays all the airline codes
- Search all the flights for speciifc airline/country
- Displays 15 days history of specific flight
- Displays different timezones based on departure/arrival country
- Tabluate the output results##USAGE
Using this script you can track/check/search flight details.
Airline scrapper
```
optional arguments:
-h, --help Show this help message and exit
-lc Lists all the airline codes
-s SEARCH_CODES Enter the airline/country name
-af AIRLINE_FLIGHTS Enter Airline code (Ex. AAL, AIC). Use -lc to display
airline codes or use -s to search
-fh FLIGHT_HISTORY Enter flight code
```##Example
The below example displays the 15 days history for flight AIC102 in tabular form`python airline.py -fh AIC102`
| Date | From | To | Departure - Arrival | Duration |
| ------------- | ------------------------------------------|------------------------------------------- | ---------------------------| -------------|
| 12-Oct-2015 | Indira Gandhi Int'l (New Delhi IN) - VIDP |Chatrapati Shivaji Int'l (Mumbai IN) - VABB | 16:55 IST - 18:55 IST | Scheduled |
| 11-Oct-2015 | John F Kennedy Intl (New York, NY) - KJFK |Indira Gandhi Int'l (New Delhi IN) - VIDP | 16:25 EDT - 15:02 IST (+1) | On The Way! |