Created
January 22, 2023 04:49
-
-
Save huzefamehidpurwala/96c8e4c6d328dcdc08984abf2196bcea to your computer and use it in GitHub Desktop.
This python script works as a robot which takes 'product asins' stored in a text file in the same directory with the name 'asins.txt' and enters and select the specified product for coupon activation on Amazon SellerCenter.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyautogui | |
import time | |
with open("asin.txt", "r") as asins: | |
time.sleep(3) | |
for line in asins.readlines(): | |
pyautogui.typewrite(line) | |
# pyautogui.press("enter") | |
time.sleep(3) | |
for i in range(4): | |
pyautogui.press("tab") | |
pyautogui.press("enter") | |
with pyautogui.hold('shift'): # Press the Shift key down and hold it. | |
for i in range(4): | |
pyautogui.press("tab") | |
# time.sleep(8) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment