Skip to content

Instantly share code, notes, and snippets.

@zehpatricio
Created February 23, 2021 17:11
Show Gist options
  • Save zehpatricio/8c3e02273ec394e6edc0d7202e8fcdef to your computer and use it in GitHub Desktop.
Save zehpatricio/8c3e02273ec394e6edc0d7202e8fcdef to your computer and use it in GitHub Desktop.
Pyautogui twitter commenter
import pyautogui
comment = Point(x=205, y=587)
textarea = Point(x=239, y=261)
pyautogui.typewrite("asdf")
button = Point(x=449, y=325)
def click(x, y):
pyautogui.moveTo(x, y)
pyautogui.click()
def comment(text):
click(comment)
time.sleep(1)
click(textarea)
pyautogui.typewrite(text)
click(sendbutton)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment