forked from andyzys/jd_seckill
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
34 lines (27 loc) · 1.3 KB
/
main.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
32
33
import sys
from jd_spider_requests import JdSeckill
if __name__ == '__main__':
a = """
_____ _______ ______ __ __ __ __
/ |/ \ / \ / | / |/ |/ |
$$$$$ |$$$$$$$ | /$$$$$$ | ______ _______ $$ | __ $$/ $$ |$$ |
$$ |$$ | $$ | ______ $$ \__$$/ / \ / |$$ | / |/ |$$ |$$ |
__ $$ |$$ | $$ |/ |$$ \ /$$$$$$ |/$$$$$$$/ $$ |_/$$/ $$ |$$ |$$ |
/ | $$ |$$ | $$ |$$$$$$/ $$$$$$ |$$ $$ |$$ | $$ $$< $$ |$$ |$$ |
$$ \__$$ |$$ |__$$ | / \__$$ |$$$$$$$$/ $$ \_____ $$$$$$ \ $$ |$$ |$$ |
$$ $$/ $$ $$/ $$ $$/ $$ |$$ |$$ | $$ |$$ |$$ |$$ |
$$$$$$/ $$$$$$$/ $$$$$$/ $$$$$$$/ $$$$$$$/ $$/ $$/ $$/ $$/ $$/
功能列表:
1.预约商品
2.秒杀抢购商品
"""
print(a)
jd_seckill = JdSeckill()
choice_function = input('请选择:')
if choice_function == '1':
jd_seckill.reserve()
elif choice_function == '2':
jd_seckill.seckill_by_proc_pool()
else:
print('没有此功能')
sys.exit(1)