# /usr/bin/python3.
# -*- coding: utf-8 -*-

"""取得城市的英文缩写，保存在 stations.py 里面"""

from pprint import pprint
import re
import requests


urls = 'https://kyfw.12306.cn/otn/resources/js/framework/station_name.js'
response = requests.get(urls, verify=False)
stations = re.findall(r'([A-Z]+)\|([a-z]+)', response.text)
stations = dict(stations)
stations = dict(zip(stations.values(), stations.keys()))
pprint(dict(stations), indent=4)

6cf95dc13bafff6252f45b0b1e48776d3ccfad6b
<mask token>

<mask token>
pprint(dict(stations), indent=4)

<mask token>
urls = 'https://kyfw.12306.cn/otn/resources/js/framework/station_name.js'
response = requests.get(urls, verify=False)
stations = re.findall('([A-Z]+)\\|([a-z]+)', response.text)
stations = dict(stations)
stations = dict(zip(stations.values(), stations.keys()))
pprint(dict(stations), indent=4)

<mask token>
from pprint import pprint
import re
import requests
urls = 'https://kyfw.12306.cn/otn/resources/js/framework/station_name.js'
response = requests.get(urls, verify=False)
stations = re.findall('([A-Z]+)\\|([a-z]+)', response.text)
stations = dict(stations)
stations = dict(zip(stations.values(), stations.keys()))
pprint(dict(stations), indent=4)

# /usr/bin/python3.
# -*- coding: utf-8 -*-

"""取得城市的英文缩写，保存在 stations.py 里面"""

from pprint import pprint
import re
import requests


urls = 'https://kyfw.12306.cn/otn/resources/js/framework/station_name.js'
response = requests.get(urls, verify=False)
stations = re.findall(r'([A-Z]+)\|([a-z]+)', response.text)
stations = dict(stations)
stations = dict(zip(stations.values(), stations.keys()))
pprint(dict(stations), indent=4)
