Get up-to-date airline information of China from ctrip.com.
import urllib.request
from bs4 import BeautifulSoup
BeautifulSoup needs to be installed before running this code.
Find the directory of BeautifulSoup in cmd console, then input
python setup.py install
File "aprs.txt" contains all airports in China.
It might update over time.
Result.ext contains all results.
Results with commas separating columns, showing the following information:
- departure time
- arrival time
- departure airport
- arrival airport
- flight code
- flight company
- availability on Monday, Tuesday, ... , Sunday