I have been working on a snapchat bot to send streaks. since snapchat has no official api I am using pyautogui to click and type things on a android emulator. I want the streaks to display the exact date of the day I send it. the code is
import pyautogui, time
import keyboard
from datetime import date
import datetime
import time
f = open("textlines.txt", 'r')
time.sleep(5)
pyautogui.click(x=934, y=885)
time.sleep(0.5)
pyautogui.click(x=1181, y=89)
time.sleep(0.5)
for word in f:
pyautogui.typewrite(word)
time.sleep(0.3)
keyboard.write("The date and time is:"(str), date)
pyautogui.click(x=922, y=333)
time.sleep(0.5)
pyautogui.click(x=1165, y=996)
time.sleep(1)
pyautogui.click(x=834, y=148)
time.sleep(0.5)
pyautogui.click(x=860, y=242)
time.sleep(0.5)
pyautogui.click(x=1178, y=986)
time.sleep(1)
pyautogui.click(x=937, y=990)
Textlines is the text that I am using and the clicks is where my mouse is clicking. I keep on getting errors trying to type out the date. any help on how I can do so?