网址:https://touch.qunar.com
1.获取出发地站点列表:
url:https://touch.dujia.qunar.com/depCities.qunar
#!/usr/bin/env python # -*- coding:utf-8 -*- # Author:XXC import requests url="https://touch.dujia.qunar.com/depCities.qunar" strhtml = requests.get(url) dep_dict = strhtml.json() for dep_item in dep_dict['data']: for dep in dep_dict['data'][dep_item]: print(dep)