forked from Lasx/jd_mask
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.py
More file actions
25 lines (24 loc) · 691 Bytes
/
Copy pathmain.py
File metadata and controls
25 lines (24 loc) · 691 Bytes
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
import sys
from jd_mask_spider_requests import Jd_Mask_Spider
if __name__ == '__main__':
a = """
________ __ _
|___ /\ \ / / | |
/ / \ V / | |
/ / > < _ | |
/ /__ / . \ |__| |1.预约商品
/_____|/_/ \_\____/ 2.秒杀抢购商品
"""
start_tool = Jd_Mask_Spider()
print(a)
choice_function = input('选择功能:')
if choice_function == '1':
start_tool.login()
start_tool.make_reserve()
elif choice_function == '2':
start_tool.request_seckill_url()
start_tool.request_seckill_checkout_page()
start_tool.submit_seckill_order()
else:
print('没有此功能')
sys.exit(1)