mv config.py.example config.py
pip3 install -r requirements.txt
EMAIL_SENDER_USERNAME = "sender@126.com"
EMAIL_SENDER_PASSWORD = "XXXGKIB"
EMAIL_RECEIVER = EMAIL_SENDER_USERNAME
mobian@mobian:~/app/imaotai$ python3 login.py
{
"1": "河北省",
"2": "山西省",
"3": "吉林省",
"4": "辽宁省",
"5": "黑龙江省",
"6": "陕西省",
"7": "甘肃省",
"8": "青海省",
"9": "山东省",
"10": "福建省",
"11": "浙江省",
"12": "河南省",
"13": "湖北省",
"14": "湖南省",
"15": "江西省",
"16": "江苏省",
"17": "安徽省",
"18": "广东省",
"19": "海南省",
"20": "四川省",
"21": "贵州省",
"22": "云南省",
"23": "北京市",
"24": "上海市",
"25": "天津市",
"26": "重庆市",
"27": "内蒙古自治区",
"28": "新疆维吾尔自治区",
"29": "宁夏回族自治区",
"30": "广西壮族自治区",
"31": "西藏自治区"
}
选择预约省份序号[23]:23
输入门店关键字[廊坊]:北京
输入手机号[13812341234]:186116*****
输入 [186116****] 验证码[1234]:3268
是否继续添加账号[Y/N]:n
mobian@mobian:~/app/imaotai$ cat ~/.imaotai/credentials
[1850006****]
city = 西安市
token = zF3viZiQyUeYb5i4dxAhcBWguXS5VFYUPS5Di7BdsLs
userid = 106944****
[1863637****]
city = 北京市
token = eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9
userid = 1102514****
[1861164****]
city = 北京市
token = 6INvrtyGOTdpsvFmiw0I4FoFNDyG-ekt2WFsQsU9nBU
userid = 10677****
python3 main.py
# imaotai
10 9 * * * root python3 /home/mobian/app/imaotai/main.py >> /tmp/logs/imaotai.log