Skip to content

Instantly share code, notes, and snippets.

@huzefamehidpurwala
Created January 22, 2023 04:49
Show Gist options
  • Save huzefamehidpurwala/96c8e4c6d328dcdc08984abf2196bcea to your computer and use it in GitHub Desktop.
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.
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