├── .idea
├── .gitignore
├── misc.xml
├── vcs.xml
├── inspectionProfiles
│ ├── profiles_settings.xml
│ └── Project_Default.xml
├── modules.xml
└── SNKRS_bot.iml
├── reference_imgs
├── vpn.png
├── chrome.png
├── vpn1.png
├── vpn_connect.png
└── vpn_disconnect.png
├── requirements.txt
├── SNKRS_imgs
├── SNKRS_10M.png
├── SNKRS_10W.png
├── SNKRS_11M.png
├── SNKRS_11W.png
├── SNKRS_12M.png
├── SNKRS_12W.png
├── SNKRS_13M.png
├── SNKRS_6Y.png
├── SNKRS_7M.png
├── SNKRS_9M.png
├── SNKRS_9W.png
├── SNKRS_M7.png
├── SNKRS_M8.5.png
├── SNKRS_M8.png
├── SNKRS_M9.png
├── SNKRS_buy.png
├── SNKRS_draw.png
├── SNKRS_logo.png
├── SNKRS_11.5M.png
├── SNKRS_email.png
├── SNKRS_login.png
├── SNKRS_notify.png
├── SNKRS_signin.png
├── SNKRS_draw_info.png
├── SNKRS_draw_ok.png
├── SNKRS_notify1.png
├── SNKRS_password.png
├── SNKRS_x_button.png
├── SNKRS_draw_confirm.png
├── SNKRS_save_payment.png
├── SNKRS_security_code.png
└── SNKRS_submit_order.png
├── README.md
├── LICENSE
├── general_methods.py
└── main1.py
/.idea/.gitignore:
--------------------------------------------------------------------------------
1 | # Default ignored files
2 | /shelf/
3 | /workspace.xml
4 |
--------------------------------------------------------------------------------
/reference_imgs/vpn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wenyushe/Nike_Bot/HEAD/reference_imgs/vpn.png
--------------------------------------------------------------------------------
/requirements.txt:
--------------------------------------------------------------------------------
1 | pyautogui
2 | time
3 | datetime
4 | webbrowser
5 | screen_brightness_control
6 |
--------------------------------------------------------------------------------
/SNKRS_imgs/SNKRS_10M.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wenyushe/Nike_Bot/HEAD/SNKRS_imgs/SNKRS_10M.png
--------------------------------------------------------------------------------
/SNKRS_imgs/SNKRS_10W.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wenyushe/Nike_Bot/HEAD/SNKRS_imgs/SNKRS_10W.png
--------------------------------------------------------------------------------
/SNKRS_imgs/SNKRS_11M.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wenyushe/Nike_Bot/HEAD/SNKRS_imgs/SNKRS_11M.png
--------------------------------------------------------------------------------
/SNKRS_imgs/SNKRS_11W.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wenyushe/Nike_Bot/HEAD/SNKRS_imgs/SNKRS_11W.png
--------------------------------------------------------------------------------
/SNKRS_imgs/SNKRS_12M.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wenyushe/Nike_Bot/HEAD/SNKRS_imgs/SNKRS_12M.png
--------------------------------------------------------------------------------
/SNKRS_imgs/SNKRS_12W.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wenyushe/Nike_Bot/HEAD/SNKRS_imgs/SNKRS_12W.png
--------------------------------------------------------------------------------
/SNKRS_imgs/SNKRS_13M.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wenyushe/Nike_Bot/HEAD/SNKRS_imgs/SNKRS_13M.png
--------------------------------------------------------------------------------
/SNKRS_imgs/SNKRS_6Y.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wenyushe/Nike_Bot/HEAD/SNKRS_imgs/SNKRS_6Y.png
--------------------------------------------------------------------------------
/SNKRS_imgs/SNKRS_7M.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wenyushe/Nike_Bot/HEAD/SNKRS_imgs/SNKRS_7M.png
--------------------------------------------------------------------------------
/SNKRS_imgs/SNKRS_9M.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wenyushe/Nike_Bot/HEAD/SNKRS_imgs/SNKRS_9M.png
--------------------------------------------------------------------------------
/SNKRS_imgs/SNKRS_9W.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wenyushe/Nike_Bot/HEAD/SNKRS_imgs/SNKRS_9W.png
--------------------------------------------------------------------------------
/SNKRS_imgs/SNKRS_M7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wenyushe/Nike_Bot/HEAD/SNKRS_imgs/SNKRS_M7.png
--------------------------------------------------------------------------------
/SNKRS_imgs/SNKRS_M8.5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wenyushe/Nike_Bot/HEAD/SNKRS_imgs/SNKRS_M8.5.png
--------------------------------------------------------------------------------
/SNKRS_imgs/SNKRS_M8.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wenyushe/Nike_Bot/HEAD/SNKRS_imgs/SNKRS_M8.png
--------------------------------------------------------------------------------
/SNKRS_imgs/SNKRS_M9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wenyushe/Nike_Bot/HEAD/SNKRS_imgs/SNKRS_M9.png
--------------------------------------------------------------------------------
/SNKRS_imgs/SNKRS_buy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wenyushe/Nike_Bot/HEAD/SNKRS_imgs/SNKRS_buy.png
--------------------------------------------------------------------------------
/SNKRS_imgs/SNKRS_draw.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wenyushe/Nike_Bot/HEAD/SNKRS_imgs/SNKRS_draw.png
--------------------------------------------------------------------------------
/SNKRS_imgs/SNKRS_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wenyushe/Nike_Bot/HEAD/SNKRS_imgs/SNKRS_logo.png
--------------------------------------------------------------------------------
/reference_imgs/chrome.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wenyushe/Nike_Bot/HEAD/reference_imgs/chrome.png
--------------------------------------------------------------------------------
/reference_imgs/vpn1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wenyushe/Nike_Bot/HEAD/reference_imgs/vpn1.png
--------------------------------------------------------------------------------
/SNKRS_imgs/SNKRS_11.5M.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wenyushe/Nike_Bot/HEAD/SNKRS_imgs/SNKRS_11.5M.png
--------------------------------------------------------------------------------
/SNKRS_imgs/SNKRS_email.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wenyushe/Nike_Bot/HEAD/SNKRS_imgs/SNKRS_email.png
--------------------------------------------------------------------------------
/SNKRS_imgs/SNKRS_login.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wenyushe/Nike_Bot/HEAD/SNKRS_imgs/SNKRS_login.png
--------------------------------------------------------------------------------
/SNKRS_imgs/SNKRS_notify.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wenyushe/Nike_Bot/HEAD/SNKRS_imgs/SNKRS_notify.png
--------------------------------------------------------------------------------
/SNKRS_imgs/SNKRS_signin.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wenyushe/Nike_Bot/HEAD/SNKRS_imgs/SNKRS_signin.png
--------------------------------------------------------------------------------
/SNKRS_imgs/SNKRS_draw_info.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wenyushe/Nike_Bot/HEAD/SNKRS_imgs/SNKRS_draw_info.png
--------------------------------------------------------------------------------
/SNKRS_imgs/SNKRS_draw_ok.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wenyushe/Nike_Bot/HEAD/SNKRS_imgs/SNKRS_draw_ok.png
--------------------------------------------------------------------------------
/SNKRS_imgs/SNKRS_notify1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wenyushe/Nike_Bot/HEAD/SNKRS_imgs/SNKRS_notify1.png
--------------------------------------------------------------------------------
/SNKRS_imgs/SNKRS_password.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wenyushe/Nike_Bot/HEAD/SNKRS_imgs/SNKRS_password.png
--------------------------------------------------------------------------------
/SNKRS_imgs/SNKRS_x_button.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wenyushe/Nike_Bot/HEAD/SNKRS_imgs/SNKRS_x_button.png
--------------------------------------------------------------------------------
/reference_imgs/vpn_connect.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wenyushe/Nike_Bot/HEAD/reference_imgs/vpn_connect.png
--------------------------------------------------------------------------------
/SNKRS_imgs/SNKRS_draw_confirm.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wenyushe/Nike_Bot/HEAD/SNKRS_imgs/SNKRS_draw_confirm.png
--------------------------------------------------------------------------------
/SNKRS_imgs/SNKRS_save_payment.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wenyushe/Nike_Bot/HEAD/SNKRS_imgs/SNKRS_save_payment.png
--------------------------------------------------------------------------------
/SNKRS_imgs/SNKRS_security_code.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wenyushe/Nike_Bot/HEAD/SNKRS_imgs/SNKRS_security_code.png
--------------------------------------------------------------------------------
/SNKRS_imgs/SNKRS_submit_order.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wenyushe/Nike_Bot/HEAD/SNKRS_imgs/SNKRS_submit_order.png
--------------------------------------------------------------------------------
/reference_imgs/vpn_disconnect.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wenyushe/Nike_Bot/HEAD/reference_imgs/vpn_disconnect.png
--------------------------------------------------------------------------------
/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.idea/inspectionProfiles/profiles_settings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/.idea/SNKRS_bot.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/.idea/inspectionProfiles/Project_Default.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Nike-bot
2 | This is a Nike bot that is used on the Nike SNKRS website to buy highly demanded sneakers with high resale value. When Nike releases a sneaker, this bot automatically buys the sneaker through as many accounts as possible during the ten minute Nike raffle process.
3 |
4 | Functions of this bot include:
5 | - running the moment Nike releases a sneaker
6 | - changing the IP address for every account entered in the raffle
7 | - going through the entire checkout process (selecting shoe size, filling out address/payment info, etc)
8 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2022 Wenyu She
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/general_methods.py:
--------------------------------------------------------------------------------
1 | import pyautogui
2 | import time
3 | import webbrowser
4 | from datetime import datetime
5 |
6 |
7 | def find_image(target, conf):
8 | coordinates = None
9 | count = 0
10 | while coordinates == None and count < 8:
11 | coordinates = pyautogui.locateCenterOnScreen(target, grayscale=True, confidence=conf)
12 | count += 1
13 | return coordinates
14 |
15 |
16 | def wifi_on(tries):
17 | tries += 1
18 | if find_image(r"C:\Users\mail4\PycharmProjects\wifi\no_wifi.png", .9) != None:
19 | pyautogui.click(find_image(r"C:\Users\mail4\PycharmProjects\wifi\no_wifi.png", .9))
20 | time.sleep(2)
21 | if find_image(r"C:\Users\mail4\PycharmProjects\wifi\disconnect_wifi.png", .8) != None:
22 | pyautogui.click(find_image(r"C:\Users\mail4\PycharmProjects\wifi\diconnect_wifi.png", .8))
23 | time.sleep(2)
24 | pyautogui.click(find_image(r"C:\Users\mail4\PycharmProjects\wifi\connect_wifi.png", .7))
25 | elif find_image(r"C:\Users\mail4\PycharmProjects\wifi\deco.png", .8) != None:
26 | pyautogui.click(find_image(r"C:\Users\mail4\PycharmProjects\wifi\deco.png", .8))
27 | time.sleep(2)
28 | pyautogui.click(find_image(r"C:\Users\mail4\PycharmProjects\wifi\connect_wifi.png", .8))
29 | pyautogui.click(1100, 200)
30 | time.sleep(10)
31 | if find_image(r"C:\Users\mail4\PycharmProjects\wifi\no_wifi.png", .9) != None:
32 | if tries != 3:
33 | wifi_on(tries)
34 | else:
35 | return False
36 | else:
37 | return True
38 | else:
39 | return True
40 |
41 |
42 | def captcha():
43 | if find_image(r"C:\Users\mail4\PycharmProjects\Bodega_Bot\captcha_solver.png", 0.7) != None:
44 | time.sleep(1)
45 | pyautogui.click(find_image(r"C:\Users\mail4\PycharmProjects\Bodega_Bot\captcha_solver.png", 0.7))
46 | pyautogui.scroll(150)
47 | time.sleep(2)
48 | redo = 0
49 | while find_image(r"C:\Users\mail4\PycharmProjects\Bodega_Bot\captcha_solver.png", 0.7) != None:
50 | pyautogui.click(find_image(r"C:\Users\mail4\PycharmProjects\Bodega_Bot\redo_captcha.png", 0.7))
51 | pyautogui.click(find_image(r"C:\Users\mail4\PycharmProjects\Bodega_Bot\captcha_solver.png", 0.7))
52 | time.sleep(3)
53 | redo += 1
54 | if redo == 5:
55 | break
56 |
57 |
58 | def login_SNKRS():
59 | time.sleep(10)
60 | if find_image(r"C:\Users\mail4\PycharmProjects\SNKRS_bot\SNKRS\SNKRS_login.png", .95) != None:
61 | pyautogui.click(find_image(r"C:\Users\mail4\PycharmProjects\SNKRS_bot\SNKRS\SNKRS_login.png", .9))
62 | time.sleep(1)
63 | if find_image(r"C:\Users\mail4\PycharmProjects\SNKRS_bot\SNKRS\SNKRS_email.png", .95) != None:
64 | pyautogui.click(find_image(r"C:\Users\mail4\PycharmProjects\SNKRS_bot\SNKRS\SNKRS_email.png", .9))
65 | # Enter email:
66 | pyautogui.write("")
67 | pyautogui.press("tab")
68 | time.sleep(0.5)
69 | # Enter password:
70 | pyautogui.write("")
71 | pyautogui.click(find_image(r"C:\Users\mail4\PycharmProjects\SNKRS_bot\SNKRS\SNKRS_signin.png", .9))
72 |
73 |
74 | def SNKRS_notify():
75 | pyautogui.moveTo(500, 500)
76 | time.sleep(2)
77 | scrolls = 0
78 | while find_image(r"C:\Users\mail4\PycharmProjects\SNKRS_bot\SNKRS\SNKRS_notify.png", .9) == None:
79 | if find_image(r"C:\Users\mail4\PycharmProjects\SNKRS_bot\SNKRS\SNKRS_notify1.png", .9) != None:
80 | break
81 | pyautogui.scroll(-500)
82 | scrolls += 1
83 | if scrolls == 10:
84 | break
85 | time.sleep(2)
86 | pyautogui.scroll(600)
87 |
88 |
89 | def find_and_click(image, conf, seconds):
90 | x = 0
91 | click = True
92 | while find_image(image, conf) == None:
93 | x += 1
94 | if x >= seconds:
95 | click = False
96 | break
97 | if click:
98 | pyautogui.click(find_image(image, conf))
99 | return click
100 |
101 |
102 | def new_tab():
103 | pyautogui.keyDown("ctrl")
104 | pyautogui.press("t")
105 | pyautogui.keyUp("ctrl")
106 |
107 |
108 | def find_tab(img):
109 | pyautogui.keyDown("ctrl")
110 | while find_image(img, .9) == None:
111 | pyautogui.press("tab")
112 | pyautogui.keyUp("ctrl")
113 |
114 |
115 | def next_tab():
116 | pyautogui.keyDown("ctrl")
117 | pyautogui.press("tab")
118 | pyautogui.keyUp("ctrl")
119 |
120 |
121 | def reload_page():
122 | pyautogui.keyDown("ctrl")
123 | pyautogui.press("r")
124 | pyautogui.keyUp("ctrl")
125 |
126 |
127 | def new_window():
128 | pyautogui.keyDown("ctrl")
129 | pyautogui.press("n")
130 | pyautogui.keyUp("ctrl")
131 |
132 |
133 | def switch_window():
134 | pyautogui.keyDown("alt")
135 | pyautogui.press("tab")
136 | pyautogui.keyUp("alt")
137 |
138 |
139 | def close_tab():
140 | pyautogui.keyDown("ctrl")
141 | pyautogui.press("w")
142 | pyautogui.keyUp("ctrl")
143 |
144 |
145 | def place_holder():
146 | print()
147 |
--------------------------------------------------------------------------------
/main1.py:
--------------------------------------------------------------------------------
1 | # SNKRS Bot created by: Wenyu She
2 |
3 | # Use Task Scheduler app to auto run this command through a batch file at 10am est:
4 | # C:\Users\mail4\AppData\Local\Programs\Python\Python39\python.exe "C:\Users\mail4\PycharmProjects\SNKRS_bot\main1.py" pause
5 |
6 | import time
7 | from datetime import datetime
8 | import webbrowser
9 | from Nike_Bot.general_methods import login_SNKRS, SNKRS_notify
10 | from Nike_Bot.general_methods import new_tab, find_tab, reload_page, next_tab, new_window, switch_window, close_tab, place_holder
11 | from Nike_Bot.general_methods import find_and_click, find_image, wifi_on, captcha
12 | import pyautogui
13 | import screen_brightness_control as sbc
14 |
15 |
16 | # replace settings:
17 | buy = r"SNKRS_imgs\size_imgs\SNKRS_buy.png"
18 | draw = r"SNKRS_imgs\SNKRS_draw.png"
19 |
20 |
21 | profiles = 2
22 | SNKRS_size = ["M 9", "M 8.5"]
23 | SNKRS_size_image = [r"SNKRS_imgs\SNKRS_M9.png", r"SNKRS_imgs\SNKRS_M8.5.png"]
24 | back_to = "SNKRS2"
25 |
26 |
27 | # replace links
28 | # Order: name of site, run method, link, other specific methods (find shoe, login, etc.)
29 | site_resources = [
30 | ["SNKRS1", "https://www.nike.com/launch/t/sb-dunk-low-what-the-paul?cp=65052578087_search_%7Csnkrs%7Cg%7C11856077755%7C115377939556%7Ce%7Cc", SNKRS_notify],
31 | ["SNKRS2", "https://www.nike.com/launch/t/womens-air-jordan-og-coconut-milk?cp=65052578087_search_%7Csnkrs%7Cg%7C11856077755%7C115377939556%7Ce%7Cc", SNKRS_notify]
32 | ]
33 |
34 |
35 | def open_links():
36 | for sites in site_resources:
37 | new_tab()
38 | pyautogui.write(sites[1])
39 | pyautogui.press("enter")
40 | for method in sites[2:]:
41 | method()
42 | time.sleep(1)
43 | if sites[0] == back_to:
44 | next_tab()
45 | close_tab()
46 |
47 |
48 | def run_SNKRS():
49 | time.sleep(1)
50 | while True:
51 | if datetime.now().hour == 7:
52 | time.sleep(20)
53 | # iterating through the chrome profiles
54 | for run_num in range(profiles):
55 | if datetime.now().minute >= 9:
56 | break
57 | # choosing the profile to run:
58 | pyautogui.click(find_image(r"chrome.png", .95))
59 | time.sleep(2)
60 | pyautogui.click(550 + (run_num % 4)*300, 450 + (int(run_num / 4))*300)
61 | time.sleep(2)
62 | # clicking shoe size:
63 | for shoe in range(len(SNKRS_size)):
64 | pyautogui.moveTo(800, 500)
65 | run = True
66 | pyautogui.keyDown('ctrl')
67 | pyautogui.press('f')
68 | pyautogui.keyUp('ctrl')
69 | pyautogui.write(SNKRS_size[shoe])
70 | time.sleep(1)
71 | pyautogui.click(find_image(SNKRS_size_image[shoe], .8))
72 | time.sleep(1)
73 | pyautogui.press('esc')
74 | if run:
75 | run1 = True
76 | while True:
77 | if find_image(draw, .9) != None:
78 | pyautogui.click(find_image(draw, .9))
79 | time.sleep(4)
80 | if find_image(r"SNKRS_imgs\SNKRS_draw_info.png", .9) != None:
81 | pyautogui.click(find_image(r"SNKRS_imgs\SNKRS_draw_info.png", .9))
82 | scrolls = 0
83 | while find_image(r"SNKRS_imgs\SNKRS_draw_ok.png", .95) == None:
84 | pyautogui.scroll(-500)
85 | scrolls += 1
86 | if scrolls == 4:
87 | run1 = False
88 | break
89 | pyautogui.click(find_image(r"SNKRS_imgs\SNKRS_draw_ok.png", .95))
90 | time.sleep(1)
91 | pyautogui.click(find_image(draw, .9))
92 | break
93 | elif find_image(buy, .9) != None:
94 | pyautogui.click(find_image(buy, .9))
95 | break
96 | else:
97 | pyautogui.scroll(-400)
98 | time.sleep(0.2)
99 | if run1:
100 | click = find_and_click(r"SNKRS_imgs\SNKRS_security_code.png", .9, 6)
101 | if click:
102 | # Enter CVV:
103 | pyautogui.write(" ")
104 | pyautogui.click(find_image(r"SNKRS_imgs\SNKRS_save_payment.png", .9))
105 | while find_image(r"SNKRS_imgs\SNKRS_submit_order.png", .9) == None:
106 | pyautogui.scroll(-300)
107 | pyautogui.click(find_image(r"SNKRS_imgs\SNKRS_submit_order.png", .9))
108 | if find_image(r"SNKRS_imgs\SNKRS_draw_confirm.png", .95) != None:
109 | pyautogui.click(find_image(r"SNKRS_imgs\SNKRS_draw_confirm.png", .95))
110 | time.sleep(5)
111 | next_tab()
112 | break
113 |
114 |
115 | def main():
116 | sbc.set_brightness(0)
117 | wifi = wifi_on(0)
118 | if wifi:
119 | for i in range(profiles):
120 | pyautogui.click(find_image(r"chrome.png", .9))
121 | time.sleep(2)
122 | pyautogui.click(550 + (i % 4)*300, 450 + (int(i / 4))*300)
123 | open_links()
124 |
125 |
126 | if __name__ == '__main__':
127 | main()
128 | run_SNKRS()
129 |
130 |
--------------------------------------------------------------------------------