You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
788 B

import sys
from Config.settings import config
from Core.spider import Waiter
if __name__ == '__main__':
choiceList = """
===== 注意 =====
使用前请按要求填写config.ini中的信息
功能列表
1.自动加购物车缺货等待上架自动下单
2.自动定时加购物车下单普通商品非秒杀抢购
"""
print(choiceList)
choice_function = ''
if choice_function == '':
choice_function = input('请选择:')
if choice_function == '1':
waiter = Waiter()
waiter.waitForSell()
elif choice_function == '2':
waiter = Waiter()
waiter.waitTimeForSell()
else:
print('没有此功能')
sys.exit(1)