|
|
|
@ -9,26 +9,24 @@ if __name__ == '__main__':
@@ -9,26 +9,24 @@ if __name__ == '__main__':
|
|
|
|
|
使用前请按要求填写config.ini中的信息 |
|
|
|
|
|
|
|
|
|
功能列表: |
|
|
|
|
1.预约商品 |
|
|
|
|
2.秒杀抢购商品 |
|
|
|
|
3.自动加购物车,缺货等待上架自动下单 |
|
|
|
|
4.缺货上架自动定时下单(普通商品,非秒杀抢购) |
|
|
|
|
1.自动加购物车,缺货等待上架自动下单 |
|
|
|
|
2.自动定时加购物车下单(普通商品,非秒杀抢购) |
|
|
|
|
""" |
|
|
|
|
print(choiceList) |
|
|
|
|
choice_function = global_config.getRaw("config", "mode") |
|
|
|
|
if choice_function == '': |
|
|
|
|
choice_function = input('请选择:') |
|
|
|
|
global_config.setMode(choice_function) |
|
|
|
|
# if choice_function == '1': |
|
|
|
|
# jd_seckill = Seckiller() |
|
|
|
|
# jd_seckill.reserve() |
|
|
|
|
# elif choice_function == '2': |
|
|
|
|
# jd_seckill = Seckiller() |
|
|
|
|
# jd_seckill.seckill_by_proc_pool() |
|
|
|
|
if choice_function == '1': |
|
|
|
|
jd_seckill = Seckiller() |
|
|
|
|
jd_seckill.reserve() |
|
|
|
|
elif choice_function == '2': |
|
|
|
|
jd_seckill = Seckiller() |
|
|
|
|
jd_seckill.seckill_by_proc_pool() |
|
|
|
|
elif choice_function == '3': |
|
|
|
|
waiter = Waiter() |
|
|
|
|
waiter.waitForSell() |
|
|
|
|
elif choice_function == '4': |
|
|
|
|
elif choice_function == '2': |
|
|
|
|
waiter = Waiter() |
|
|
|
|
waiter.waitTimeForSell() |
|
|
|
|
else: |
|
|
|
|