import urllib.request import re import datetime from datetime import timedelta import ctypes import winsound def search(fromDate,toDate): found = False while not found: date = fromDate showOneTime = False while (date <= toDate): url ='https://kyfw.12306.cn/otn/lcxxcx/query?purpose_codes=ADULT&queryDate='+date.strftime('%Y-%m-%d')+'&from_station=QYS&to_station=BJP' text = urllib.request.urlopen(url).read().decode('utf-8') regular = r'ze_num":"(\d+)
12306查票爬虫程序
最新推荐文章于 2024-05-02 10:47:26 发布