#!/usr/bin/env python
#coding:utf8
import re
import time
import json
import sys
import random
import argparse
import datetime
import cookielib
import urllib
import urllib2
from PIL import Image
from pytesseract import image_to_string
VALID_URL = "http://wsyc.603377.com.cn/validpng.aspx?aa=3&page=lg"
LOGIN_URL = "http://wsyc.603377.com.cn/DfssAjax.aspx"
USERNAME = "xxxxx"
PASSWORD = "xxxxx"
VALID_JPG = "./validcode.jpg"
#定义约车时间段
DATAS = [{
"start":9,"end":13,"trainsessionid":"02"},
{
"start":13,"end":17,"trainsessionid":"03"}]
HEADERS = {
"Usaer-Agent" : "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:59.0) Gecko/20100101 Firefox/59.0",
"Connection" : "Keep-alive",
"Accept" : "*/*",
"Accept-Encoding" : "gzip, deflate",
"Content-Type" : "application/x-www-form-urlencoded; charset=UTF-8",
"Host" : "wsyc.603377.com.cn",
"Accept-Language" : "zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2",
"X-Requested-With": "XMLHttpRequest",
"host" : "wsyc.603377.com.cn",}
PROXY_INFO =
dfss 驾校约车脚本
最新推荐文章于 2023-03-21 09:36:34 发布
本文介绍了如何利用Python脚本实现驾校约车的自动化过程,通过脚本提高约车效率,减少手动操作的繁琐。
摘要由CSDN通过智能技术生成