Friday, May 1Digital Marketing Journals

pyautogui

I Wrote a Wordscapes Bot in Python, And Became a Screenshot Hoarder | by Matt Kornfield | Oct, 2022
best chatbot, bots, chatbot, chatbot app, chatbot online, chatbot website, creating chatbots, pyautogui, python, python-automation, robot chat, wordscapes

I Wrote a Wordscapes Bot in Python, And Became a Screenshot Hoarder | by Matt Kornfield | Oct, 2022

Hey, bots should be allowed to have leisure time too!Photo by Daniel Klein on UnsplashI wrote an article explaining how I built a simple anagram solver for Wordscapes. But then I got stupidly obsessed with how I could take my cheating to the next level. I didn’t want to swipe anymore! But what could I use to swipe the screen for my lazy behind?Enter pyautoguiIt’s a Python library that lets you, among other things, screenshot and click around a screen on different platforms. There are faster platform specific options but for my needs this was more than sufficient.If a pictures worth a thousand words, then a gif is worth 1000s of words yeah?Yes I have a tab open for how to screen record. OBS ftw!How does it work? Let me break it down for you. (All the code is here.)A Dumb SolverThe very firs...