Created
September 24, 2018 04:45
-
-
Save TheRealNoob/bb4ef857eac87907d78d34306622ff1c to your computer and use it in GitHub Desktop.
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
event is a custom object defined above | |
buttons = re.findall(r"text='([-\w ]*)'", event.stringify(), re.MULTILINE) | |
buttons = list(set(buttons)) | |
buttons.remove('View pokemon') | |
for number in buttons: | |
if number != " ": | |
last_request = functools.partial(event.click, text=number) | |
await event.click(text=number) | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment