-
Notifications
You must be signed in to change notification settings - Fork 75
/
main.py
33 lines (31 loc) · 1.49 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 spiders.jd_order_requests import JdSubscribe
from spiders.jd_seckill_requests import JdSeckill
from spiders.jd_coupon_requests import JdCoupon
if __name__ == '__main__':
a = r"""
____.________ ________ .___ _________ __ .__.__ .__
| |\______ \ \_____ \_______ __| _/___________ / _____/ ____ ____ | | _|__| | | |
| | | | \ ______ / | \_ __ \/ __ |/ __ \_ __ \ ______ \_____ \_/ __ \_/ ___\| |/ / | | | |
/\__| | | ` \ /_____/ / | \ | \/ /_/ \ ___/| | \/ /_____/ / \ ___/\ \___| <| | |_| |__
\________|/_______ / \_______ /__| \____ |\___ >__| /_______ /\___ >\___ >__|_ \__|____/____/
\/ \/ \/ \/ \/ \/ \/ \/
功能列表:
1.预约商品
2.秒杀抢购商品
3.京东超级全城购,满199-198优惠券
"""
print(a)
choice_function = input('请选择:')
if choice_function == '1':
jd_subscribe = JdSubscribe()
jd_subscribe.reserve()
elif choice_function == '2':
jd_seckill = JdSeckill()
jd_seckill.seckill_by_proc_pool()
elif choice_function == '3':
jd_coupon = JdCoupon()
jd_coupon.receive()
else:
print('没有此功能')
sys.exit(1)